• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2523
  • Last Modified:

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 ?
0
KCTeam
Asked:
KCTeam
  • 2
1 Solution
 
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
 
Gary BenadeCommented:
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

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now