Get "node name" from XML using as3

Hi,

I have this project where people load in diffrent .xml files.

Since i don’t know the structure of the xml (because the xml file is diffrent all the time), i need to be able to “get” the “node name”.

For example, if i load this xml:

<data>
      <books>
            <item>Test1</item>
            <item>Test2</item>
      </books>
</data>

I want to “get” the diffrent tag/child names, books, item etc.

Any ideas?

Thanks in advance
Richard