# Node name referencing

**URL:** https://forum.kirupa.com/t/node-name-referencing/59851
**Category:** flash
**Created:** [August 4, 2004, 11:16am UTC](https://forum.kirupa.com/t/node-name-referencing/59851 "2004-08-04T11:16:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Jimbo](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jimbo](https://forum.kirupa.com/u/Jimbo)
#### Post date: [August 4, 2004, 11:16am UTC](https://forum.kirupa.com/t/node-name-referencing/59851/1 "2004-08-04T11:16:34Z")

</div>

Hello all

I’m just starting to play with XML in Flash. I’ve managed to load in an xml file into an xml object and assign values from the XML to variables (displayed in dynamic text boxes at the moment).

I’m fairly new to this, and at the moment I’ve been referencing the attributes using _firstChild_.

MyVar = LoadedXML.firstChild.firstChild.firstChild.firstChild.nodeValue;

However this could get very messy once the XML becomes more complex. Is there a way of referencing the tags in the XML? Something similar to:

MyVar = LoadedXML.tagName1.nextTag.joeBloggs.whatever.nodeValue;

TIA
