# Load XML node into text field?

**URL:** https://forum.kirupa.com/t/load-xml-node-into-text-field/261548
**Category:** flash
**Created:** [May 28, 2008, 6:49pm UTC](https://forum.kirupa.com/t/load-xml-node-into-text-field/261548 "2008-05-28T18:49:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![reblis](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@reblis](https://forum.kirupa.com/u/reblis)
#### Post date: [May 28, 2008, 6:49pm UTC](https://forum.kirupa.com/t/load-xml-node-into-text-field/261548/1 "2008-05-28T18:49:50Z")

</div>

I"m at a point where I can’t figure out the next step.

I’m trying to lead some of the text from an XML file into a text field.  
I’m pretty sure this needs to be a dynamic text field so I can put an instance name on it.

I just dont know how to implement that.

Any help would be appreciated.

```auto

var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
 
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
 
xmlLoader.load(new URLRequest("http://www.kirupa.com/net/files/sampleXML.xml"));
 

function LoadXML(e:Event):void {

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

}
 
function ParseBooks(bookInput:XML):void {

trace("XML Output");
trace("------------------------");
trace(bookInput.Book.author.text()[0]);

}

```

---

<div class="post-metadata">

### Author: ![reblis](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@reblis](https://forum.kirupa.com/u/reblis)
#### Post date: [May 28, 2008, 7:34pm UTC](https://forum.kirupa.com/t/load-xml-node-into-text-field/261548/2 "2008-05-28T19:34:39Z")

</div>

Yeah I want to make them as symbols on the stage, not by using AS, but I’m not sure how to make the XML node appear in it.

---

<div class="post-metadata">

### Author: ![Alex\_Lexcuk](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@Alex\_Lexcuk](https://forum.kirupa.com/u/Alex_Lexcuk)
#### Post date: [May 28, 2008, 7:50pm UTC](https://forum.kirupa.com/t/load-xml-node-into-text-field/261548/3 "2008-05-28T19:50:06Z")

</div>

For example  
[http://dnadillo.dn.ua/fla/XML/XML.swf](http://dnadillo.dn.ua/fla/XML/XML.swf)  
[http://dnadillo.dn.ua/fla/XML/mur\_xml\_file.xml](http://dnadillo.dn.ua/fla/XML/mur_xml_file.xml)  
[http://dnadillo.dn.ua/fla/XML/XML.rar](http://dnadillo.dn.ua/fla/XML/XML.rar)

[SIZE=2]Question? Why I have a comma at the beginning phrases?  
[/SIZE]
