# e4x xml nodeName

**URL:** <https://forum.kirupa.com/t/e4x-xml-nodename/212400>\
**Category:** flash\
**Created:** [January 10, 2007, 8:46pm UTC](https://forum.kirupa.com/t/e4x-xml-nodename/212400 "2007-01-10T20:46:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![skindc](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@skindc](https://forum.kirupa.com/u/skindc)\
**Post date:** [January 10, 2007, 8:46pm UTC](https://forum.kirupa.com/t/e4x-xml-nodename/212400/1 "2007-01-10T20:46:46Z")

</div>

hI,  
I am currently migrating to as3 with e4x xml.  
I am trying to migrate a controller class I have in as2 that iterates through an xml tree and builds a controller object that controls apperance and content of a flash application.  
In my as2 class i would use the “nodeName” to retrieve an elements name therefore the script was completely dynamic to any xml file and would build the contents of the controller object relative to nodeNames.  
I am trying to decifer a way of doing this with e4x but am struggling to find the syntax. I have tried using a for each iteration using the new "elements () " function but e4x doesn’t seem to recognise the nodeName function.  
Can anyone advise on a method for this, I am sure with e4x’s capabilities this must be possible.  
Cheers  
Skin
