# How to validate xml file in actionscrip3.0?

**URL:** <https://forum.kirupa.com/t/how-to-validate-xml-file-in-actionscrip3-0/317629>\
**Category:** Uncategorized\
**Created:** [December 28, 2010, 6:41am UTC](https://forum.kirupa.com/t/how-to-validate-xml-file-in-actionscrip3-0/317629 "2010-12-28T06:41:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hmdnawaz](https://avatars.discourse-cdn.com/v4/letter/h/d2c977/32.png) [@hmdnawaz](https://forum.kirupa.com/u/hmdnawaz)\
**Post date:** [December 28, 2010, 6:41am UTC](https://forum.kirupa.com/t/how-to-validate-xml-file-in-actionscrip3-0/317629/1 "2010-12-28T06:41:36Z")

</div>

\<note\>  
\<to\>ahmad\</to\>  
\<from\>jhon  
\<body\>hello how are you!!!\</body\>  
\</note\>

above is my xml file which have no ending tag of from tag. which id an error.  
i want an actionscript code to check if there is a broken tag then fix it automaticaly . and my code displays the correct xml.

anyone who can help me???

Thanks

Regards  
Ahmad
