# Get "node name" from XML using as3

**URL:** https://forum.kirupa.com/t/get-node-name-from-xml-using-as3/285479
**Category:** flash
**Created:** [April 1, 2009, 12:04pm UTC](https://forum.kirupa.com/t/get-node-name-from-xml-using-as3/285479 "2009-04-01T12:04:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![richarddd](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@richarddd](https://forum.kirupa.com/u/richarddd)
#### Post date: [April 1, 2009, 12:04pm UTC](https://forum.kirupa.com/t/get-node-name-from-xml-using-as3/285479/1 "2009-04-01T12:04:35Z")

</div>

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:

```auto
<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
