Solved

Xml validation in actionscript

Posted on 2007-11-19
3
2,501 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Surfing Is Meant To Be Done Outdoors

Featuring its rugged IP67 compliant exterior and delivering broad, fast, and reliable Wi-Fi coverage, the AP322 is the ideal solution for the outdoors. Manage this AP with either a Firebox as a gateway controller, or with the Wi-Fi Cloud for an expanded set of management features

Question has a verified solution.

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

Suggested Solutions

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…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 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