Can I access XML nodeName?

Hi there,

I load all my content via XML these days into my flash site, but I was wondering if there is a way to access the nodeName of the XML I am bringing in? Now I don’t know if this is a very stupid way to do things, but I usually parse all the data into an array as I bring it thru the onLoad command.

So instead doing this:

[AS]book* = this.firstChild.childNode[3].firstChild.nodeValue;[/AS]

… can I do something like :

[AS]book* = this.firstChild.nodeName[‘booktitle’].firstChild.nodeValue;[/AS]

Can anyone suggest a better way?