Solved

Xml validation in actionscript

Posted on 2007-11-19
3
2,494 Views
Last Modified: 2008-02-01
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
Comment
Question by:KCTeam
  • 2
3 Comments
 
LVL 19

Expert Comment

by:Gary Benade
ID: 20328172
Please give an example of what you want to do
0
 

Author Comment

by:KCTeam
ID: 20365966
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
 
LVL 19

Accepted Solution

by:
Gary Benade earned 500 total points
ID: 20366638
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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AdvancedDataGrid 4 354
Querying XML Data Type 4 550
Function to return shape (as3) 1 529
How to transfer folders (PC-based) from a USB external HD to an iPad Air 2? 3 75
First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
For months I had no idea how to 'discover' the IP address of the other end of a link (without asking someone who knows), and it drove me batty. Think about it. You can't use Cisco Discovery Protocol (CDP) because it's not implemented on the ASAs.…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question