I have an XML object in AS3 that is formatted as follows:
<data>
<nodes>
<item></item>
<item></item>
...
</nodes>
<nodes>
<item></item>
<item></item>
...
</nodes>
...
</data>
My problem is I want to rename the node names("nodes" and "item") to something more relevant e.g. "nodes" could be "author", and "item" could be "book".
So what would be the best way to do this with E4X in AS3?