# XML childNodes help please

**URL:** <https://forum.kirupa.com/t/xml-childnodes-help-please/176679>\
**Category:** flash\
**Created:** [January 26, 2006, 12:37am UTC](https://forum.kirupa.com/t/xml-childnodes-help-please/176679 "2006-01-26T00:37:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tasty007](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@tasty007](https://forum.kirupa.com/u/tasty007)\
**Post date:** [January 26, 2006, 12:37am UTC](https://forum.kirupa.com/t/xml-childnodes-help-please/176679/1 "2006-01-26T00:37:38Z")

</div>

Hi,

I am trying to dynamically build a string that parses part of my XML document.

I end up with a string like this:  
myXML = “menu\_xml.childNodes[0]”

but every time i try and run it i get Undefined.

Are you not allowed to use:  
myXML = “menu\_xml.childNodes[”+i+"]"

Sorry if I am being dumb.

p.s. If I just trace(menu\_xml.childNodes[0]) it works fine.
