# Parsing XML help, PLEASE

**URL:** <https://forum.kirupa.com/t/parsing-xml-help-please/220654>\
**Category:** Uncategorized\
**Created:** [March 28, 2007, 2:25am UTC](https://forum.kirupa.com/t/parsing-xml-help-please/220654 "2007-03-28T02:25:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OBCRichie](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/obcrichie/32/3488_2.png) [@OBCRichie](https://forum.kirupa.com/u/OBCRichie)\
**Post date:** [March 28, 2007, 2:25am UTC](https://forum.kirupa.com/t/parsing-xml-help-please/220654/1 "2007-03-28T02:25:49Z")

</div>

If this is my XML doc. (named print.xml)  
\<print\>  
\<thumb01\>  
\<client\>“Quantico”\</client\>  
\<thumb\>thumb01.jpg\</thumb\>  
\</thumb01\>  
\</print\>

and this is my Actionscript  
printXML = new XML();  
printXML.ignoreWhite = true;  
printXML.load(“print.xml”);  
printXML.onLoad = function(success) {  
var thumb01 = printXML.firstChild.firstChild;  
trace(thumb01.firstChild.nodeType);  
//trace(this.firstChild.childNodes);  
\_root.clientTXT.text = printXML.firstChild.firstChild.firstChild.nodeValue;  
\_root.thumb01.thumbHolder.loadMovie(this.firstChild.firstChild.thumb);  
};

I can work just fine calling text documents to text fields, and dynamically loading images just using loadMovie(“url” , holder);

But I really want to start using XML so I have a one stop shop for all changes.

Any help would greatly be appreciated… I’ve gone through most of the Kirupa XML tutorial, but I need it at it’s most basic level…

I can get text fields to populate when using an Attribute of a childNode  
\<child name=“frank”\>

I can parse using:  
myText.text = myXML.firstChild.attribute.name;

but I can’t get:  
\<child\>  
\<name\> frank \</name\>  
\</child\>

to parse…

Help help help…  
please…

send me a simple FLA that works, nothing that autopopulates thumbnails, etc. Just a simple simple parse, of simple XML.

Thanks!!
