# XML.idMap Issue (urgent)

**URL:** <https://forum.kirupa.com/t/xml-idmap-issue-urgent/209696>\
**Category:** flash\
**Created:** [December 11, 2006, 5:55pm UTC](https://forum.kirupa.com/t/xml-idmap-issue-urgent/209696 "2006-12-11T17:55:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thinker2501](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@Thinker2501](https://forum.kirupa.com/u/Thinker2501)\
**Post date:** [December 11, 2006, 5:55pm UTC](https://forum.kirupa.com/t/xml-idmap-issue-urgent/209696/1 "2006-12-11T17:55:40Z")

</div>

I have successfully loaded and parsed the XML file and can trace the nodes with this code from the live docs:

```auto
var readXML = new XML();
readXML.load("spaces.xml");
readXML.onLoad = function(success) {
    myXML = new XML();
    myXML.parseXML(readXML);
    for (var x in myXML.idMap){
        trace('idMap.' + x + " = " + newline + myXML.idMap[x]);
        trace(' ____________' + newline);
    }
}

```

The problem is that when I use .firstChild or .childNodes[0]; i get undefined. Does anyone know how to access nodes inside a node referenced in the idMap?
