# Why I cant see the text? (XML Problem)

**URL:** <https://forum.kirupa.com/t/why-i-cant-see-the-text-xml-problem/154184>\
**Category:** flash\
**Created:** [July 7, 2005, 4:35pm UTC](https://forum.kirupa.com/t/why-i-cant-see-the-text-xml-problem/154184 "2005-07-07T16:35:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Silmano](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/silmano/32/1479_2.png) [@Silmano](https://forum.kirupa.com/u/Silmano)\
**Post date:** [July 7, 2005, 4:35pm UTC](https://forum.kirupa.com/t/why-i-cant-see-the-text-xml-problem/154184/1 "2005-07-07T16:35:48Z")

</div>

I have a flash with just 2 frames with code.

```auto
// First Frame Code
var userInfo = new XML();
userinfo.ignoreWhite = true;
userInfo.load('userInfo.xml');
menu_xml.onLoad = function (success)
{
	if (success)
	{
if(success == true) gotoAndPlay(2);
	}
	else
	{
		error_txt.text = "Error loading xml data...";
	} // end if
};

```

```auto
 //Second Frame Code 
userInfo.onLoad = function() {
XMLOut(this);
}	 
function XMLOUt(xml_file) {
for(a=0;a<xml_file.firstChild.childNodes.length;a++) {
for(z=0;z<xml_file.firstChild.firstChild.childNodes.length;z++) {
trace(xml_file.firstChild.childNodes[a].childNodes[z].firstChild.nodeValue);
}
}
}

```

I have the XML file and the SWF in the same directory, but I get always a blank flash preview. What I’m suposed to change in order to make the flash dislay the data I’m asking for?

Thanks for the info!
