# AS3/ XML help please with loading dynamic text boxes

**URL:** <https://forum.kirupa.com/t/as3-xml-help-please-with-loading-dynamic-text-boxes/280025>\
**Category:** flash\
**Created:** [January 21, 2009, 7:35pm UTC](https://forum.kirupa.com/t/as3-xml-help-please-with-loading-dynamic-text-boxes/280025 "2009-01-21T19:35:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wuzzi2ya](https://avatars.discourse-cdn.com/v4/letter/w/e79b87/32.png) [@wuzzi2ya](https://forum.kirupa.com/u/wuzzi2ya)\
**Post date:** [January 21, 2009, 7:35pm UTC](https://forum.kirupa.com/t/as3-xml-help-please-with-loading-dynamic-text-boxes/280025/1 "2009-01-21T19:35:12Z")

</div>

First off here is my code:

```auto
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();

xmlLoader.addEventListener(Event.COMPLETE, LoadXML);

xmlLoader.load(new URLRequest("Content.xml"));

function LoadXML(e:Event):void {

    xmlData = new XML(e.target.data);
    ParseContent(xmlData);

}
function ParseContent(contentInput:XML):void {
    instructions_mc.polygonTxt.text = xmlData
    trace("XML Output");
    trace("------------------------");
    trace(contentInput);

}

```

now as you can see I have my dynamic text field in a mc as: instructions\_mc.polygonTxt.text = xmlData

but this returns all of the xml doc as it appears in the output. How do I remedy this, as to say what is the correct path I am needing ;(? I would like to use the same xml file to populate several dynamic text fields already on the stage…

Please help! Thanks!
