# Flash XML/XPATH

**URL:** <https://forum.kirupa.com/t/flash-xml-xpath/188512>\
**Category:** flash\
**Created:** [May 8, 2006, 5:16pm UTC](https://forum.kirupa.com/t/flash-xml-xpath/188512 "2006-05-08T17:16:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan\_imart](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@ryan\_imart](https://forum.kirupa.com/u/ryan_imart)\
**Post date:** [May 8, 2006, 5:16pm UTC](https://forum.kirupa.com/t/flash-xml-xpath/188512/1 "2006-05-08T17:16:12Z")

</div>

```auto
//Global XML Menu System
import mx.xpath.XPathAPI;
menuXML = new XML();
menuXML.load("nt_mc_menus.xml");
menuXML.ignoreWhite = true;
menuXML.onLoad = function(){
 var path:String = "nutrilite/nature/whynutrilite/menu[@name='our history']";
 arNodes = mx.xpath.XPathAPI.selectNodeList(menuXML.firstChild, path);
 trace(arNodes.attributes["name"]);
}

```

Why is this tracing a value of undefined? I know it is returning in an array but this seems pretty simple…its picking off the correct node I cant seem to figure out how to grab the attribute value of name.
