e4x xml nodeName

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