# Accessing an XML Tag Name

**URL:** <https://forum.kirupa.com/t/accessing-an-xml-tag-name/295289>\
**Category:** flash\
**Created:** [August 27, 2009, 6:07pm UTC](https://forum.kirupa.com/t/accessing-an-xml-tag-name/295289 "2009-08-27T18:07:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alpha\_Remex](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@Alpha\_Remex](https://forum.kirupa.com/u/Alpha_Remex)\
**Post date:** [August 27, 2009, 6:07pm UTC](https://forum.kirupa.com/t/accessing-an-xml-tag-name/295289/1 "2009-08-27T18:07:41Z")

</div>

So this is a nuanced version of a lot of posts that I found…

If I have an XML database with a line like this:

```auto
<pizza>pepporoni</pizza>

```

…and I want to get the name “pizza” when I’m looping through a database, how would I go about doing that???

I have tried to access it by using .name or .label, but to no avail.

Any ideas?

Thanks,  
AR

EDIT: Found it… “.localName()”
