# Basic loading XML

**URL:** <https://forum.kirupa.com/t/basic-loading-xml/167270>\
**Category:** Uncategorized\
**Created:** [October 26, 2005, 7:25pm UTC](https://forum.kirupa.com/t/basic-loading-xml/167270 "2005-10-26T19:25:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![halfwitt](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/halfwitt/32/1881_2.png) [@halfwitt](https://forum.kirupa.com/u/halfwitt)\
**Post date:** [October 26, 2005, 7:25pm UTC](https://forum.kirupa.com/t/basic-loading-xml/167270/1 "2005-10-26T19:25:35Z")

</div>

Whats wrong with this script? it’s not loading right?

```auto
function load_mysaying(loaded) {
	
	if (loaded) {
		_root.saying = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
		saying_txt.text = _root.saying;
	} 
	
	else {
		saying_txt.text = "not loaded";
	}
}

mysaying1.onLoad = load_mysaying();
mysaying1 = new XML()
mysaying1.ignoreWhite = true;
mysaying1.onLoad = loadXML;
mysaying1.load("say.xml");

```
