Solved

Xml validation in actionscript

Posted on 2007-11-19
3
2,475 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
Moving applications to the cloud or switching services to cloud-based ones, is a stressful job.  Here's how you can make it easier.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now