Xml validation in actionscript

Hi,

I would like to validate an XML variable by using xml schema (or DTD). How can I do this validation in actionscript 3 ? can you give me sample code ?
KCTeamAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Gary BenadeConnect With a Mentor Commented:
actionscript can only parse an XML document, it has no DTD validation support. You could get around this by passing the xml to a php script that uses pear to dtd validate and pass it back.
0
 
Gary BenadeCommented:
Please give an example of what you want to do
0
 
KCTeamAuthor Commented:
i have a simple xml flow like :

<NodeA>
  <Sheet_a></Sheet_a>
  <Sheet_b></Sheet_b>
  <Sheet_c></Sheet_c>
  <NodeB>
    <Sheet_d></Sheet_d>
    <Sheet_e></Sheet_e>
  </NodeB>
</NodeA>

and i want to validate the format of this xml flow. I want to use a DTD, but how it proccesses to use a DTD in actionscript3 ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.