# Xml parsing using as3

**URL:** https://forum.kirupa.com/t/xml-parsing-using-as3/297087
**Category:** Uncategorized
**Created:** [September 25, 2009, 11:23am UTC](https://forum.kirupa.com/t/xml-parsing-using-as3/297087 "2009-09-25T11:23:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nipunkx](https://avatars.discourse-cdn.com/v4/letter/n/eada6e/32.png) [@nipunkx](https://forum.kirupa.com/u/nipunkx)
#### Post date: [September 25, 2009, 11:23am UTC](https://forum.kirupa.com/t/xml-parsing-using-as3/297087/1 "2009-09-25T11:23:40Z")

</div>

please help me with the script to parse the following xml using AS3. I am having an XML which details different Sizes and the respective pressure and title of pipes. I need to retrieve data in a group where each SIZE is listed along with its available THICKNESS and the TITTLE available under that corresponding THICKENSS.  
I shall paste my XML over here:

\<pipes\>

\<size v=“4mm”\>  
\<pressure v=“Drainage”\>  
\<title\>Universal\</title\>  
\<title\>Megha\</title\>  
\<title\>Kairali\</title\>  
\</pressure\>  
\<pressure v=“2.5kg”\>  
\<title\>Universal\</title\>  
\<title\>Megha\</title\>  
\<title\>Kairali\</title\>  
\<title\>Omega\</title\>  
\</pressure\>  
\<pressure v=“4kg”\>  
\<title\>Universal\</title\>  
\<title\>Megha\</title\>  
\<title\>Kairali\</title\>  
\<title\>Syntex\</title\>  
\</pressure\>  
\</size\>

\<size v=“3mm”\>  
\<pressure v=“Drainage”\>  
\<title\>Universal\</title\>  
\<title\>Megha\</title\>  
\<title\>Kairali\</title\>  
\<title\>Syntex\</title\>  
\</pressure\>  
\<pressure v=“4kg”\>  
\<title\>Universal\</title\>  
\<title\>Megha\</title\>  
\<title\>Kairali\</title\>  
\<title\>Syntex\</title\>  
\</pressure\>  
\</size\>

\<size v=“2mm”\>  
\<pressure v=“Drainage”\>  
\<title\>Universal\</title\>  
\<title\>Megha\</title\>  
\<title\>Kairali\</title\>  
\<title\>Syntex\</title\>  
\</pressure\>  
\<pressure v=“4kg”\>  
\<title\>Universal\</title\>  
\<title\>Megha\</title\>  
\<title\>Kairali\</title\>  
\<title\>Syntex\</title\>  
\</pressure\>  
\<pressure v=“8kg”\>  
\<title\>Universal\</title\>  
\<title\>Megha\</title\>  
\<title\>Kairali\</title\>  
\<title\>Syntex\</title\>  
\</pressure\>  
\</size\>

\<size v=“1mm”\>  
\<pressure v=“Threaded”\>  
\<title\>Universal\</title\>  
\<title\>Megha\</title\>  
\<title\>Kairali\</title\>  
\<title\>Syntex\</title\>  
\</pressure\>  
\<pressure v=“Pasted”\>  
\<title\>Universal\</title\>  
\<title\>Megha\</title\>  
\<title\>Kairali\</title\>  
\<title\>Syntex\</title\>  
\</pressure\>  
\</size\>

\</pipes\>

Please help me out with the AS3 script to parse this xml.  
 ![](http://forum.kirupa.com/uploads/kirupa/615/b7e0d890f190c4d7.gif)[![](http://www.actionscript.org/forums/images/buttons/report.gif) ![](http://www.actionscript.org/forums/images/misc/progress.gif) [URL=“http://www.actionscript.org/forums/editpost.php3?do=editpost&p=926620”] ![](http://www.actionscript.org/forums/images/buttons/edit.gif)](http://www.actionscript.org/forums/report.php3?p=926620)
