Accessing an XML Tag Name

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:


…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?


EDIT: Found it… “.localName()”