Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<note>
<to>ahmad</to>
<from>jhon
<body>hello how are you!!!</body>
</note>

This is my xml file that has no ending tag of from tag. This is an error.
I want an actionscript code to check if there is a broken tag then fix it automatically and thus my code displays the correct xml.

Anyone who can help me?

Thanks & Regards
Ahmad
Posted
Updated 27-Dec-10 20:15pm
v2

1 solution

ActionScript 3 has XML class which will parse your XML for well-formedness.
It will throw an exception if the XML is missing any tags. But It won't validate using DTD or any XML schema.

More information here[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900