# Simple XML question

**URL:** <https://forum.kirupa.com/t/simple-xml-question/150905>\
**Category:** Uncategorized\
**Created:** [June 11, 2005, 3:53pm UTC](https://forum.kirupa.com/t/simple-xml-question/150905 "2005-06-11T15:53:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerryj](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jerryj](https://forum.kirupa.com/u/jerryj)\
**Post date:** [June 11, 2005, 3:53pm UTC](https://forum.kirupa.com/t/simple-xml-question/150905/1 "2005-06-11T15:53:11Z")

</div>

Hi,  
my first steps on the road to XML lead to a simple question. Why doesn’t text 2 load when I press ‘mc’?  
[AS]  
this.createEmptyMovieClip(‘mc’, 1);  
mc.createTextField(“veld”, 2, 0, 0, 300, 200);  
var fmt:TextFormat = new TextFormat();  
fmt.font = “Verdana”;  
fmt.size = 12;  
fmt.bold = true;  
var my\_xml = new XML();  
my\_xml.ignoreWhite = true;  
my\_xml.onLoad = function(success) {  
if (success) {  
var a = mc.veld;  
a.text = this.firstChild.childNodes[0].firstChild;  
a.setTextFormat(fmt);  
mc.onRelease = function() {  
mc.veld.text = this.firstChild.childNodes[1].firstChild;  
};  
}  
};  
my\_xml.load(“my\_document.xml”);  
[/AS]  
XML:

```auto
<news>

	<item>
	this is text 1
	</item>
	<item>
	then this must be text 2
	</item>

</news>

```

thank you!

jerryj.
