# XML Problem

**URL:** <https://forum.kirupa.com/t/xml-problem/204147>\
**Category:** Uncategorized\
**Created:** [October 17, 2006, 2:53pm UTC](https://forum.kirupa.com/t/xml-problem/204147 "2006-10-17T14:53:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dr77](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@dr77](https://forum.kirupa.com/u/dr77)\
**Post date:** [October 17, 2006, 2:53pm UTC](https://forum.kirupa.com/t/xml-problem/204147/1 "2006-10-17T14:53:05Z")

</div>

I have the following code in the main timeline:

```auto
var My_XML:XML = new XML(); 
var rootXML1;
My_XML.ignoreWhite = true; 
My_XML.onLoad = function(success:Boolean){ 
   rootXML1 = this.childNodes; 
   trace(this.status); 
   if (success){ 
      trace (this.firstChild.firstChild); 
   } else { 
      trace ("fail"); 
   } 
} 
My_XML.load(_global.fileName); 

trace(rootXML1.firstChild.firstChild);

```

The trace on line 8 works perfectly.  
However, the final trace does not.

Could anyone tell me how to make the final trace statement work?

Cheers,

David
