# How do I get to this child in my xml?

**URL:** <https://forum.kirupa.com/t/how-do-i-get-to-this-child-in-my-xml/227766>\
**Category:** flash\
**Created:** [June 1, 2007, 10:16pm UTC](https://forum.kirupa.com/t/how-do-i-get-to-this-child-in-my-xml/227766 "2007-06-01T22:16:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)\
**Post date:** [June 1, 2007, 10:16pm UTC](https://forum.kirupa.com/t/how-do-i-get-to-this-child-in-my-xml/227766/1 "2007-06-01T22:16:57Z")

</div>

My xml file looks like this:

```php

<?xml version="1.0" encoding="UTF-8"?>
<gallery>
    <album id="liveshots" title="liveshots" lgPath="photos/livelg" tnPath="photos/livetn" tn="galleryThumb.jpg" description="liveshots">
        <img src="live1.jpg" caption="This where your photo caption would be" />
        <img src="live2.jpg" caption="This where your photo caption would be" />
        <img src="live3.jpg" caption="This where your photo caption would be" />
    </album>
    <album id="studioshots" title="studioshots" lgPath="photos/studiolg" tnPath="photos/studiotn" tn="galleryThumb.jpg" description="liveshots">
        <img src="stu1.jpg" caption="This where your photo caption would be" />
        <img src="stu2.jpg" caption="This where your photo caption would be" />
        <img src="stu3.jpg" caption="This where your photo caption would be" />
        <img src="stu4.jpg" caption="This where your photo caption would be" />
    </album>
</gallery>

```

I can get into the ‘liveshots’ area no problem. My issue is getting to the ‘studioshots’ area. My code looks like this:  
ActionScript Code:  
[FONT=Courier New][LEFT][COLOR=#0000FF]\_root[/COLOR].[COLOR=#000080]imagesxml[/COLOR] = [COLOR=#000000] **new** [/COLOR] [COLOR=#0000FF]XML[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#0000FF]\_root[/COLOR].[COLOR=#000080]imagesxml[/COLOR].[COLOR=#0000FF]ignoreWhite[/COLOR] = [COLOR=#000000] **true** [/COLOR];  
[COLOR=#0000FF]\_root[/COLOR].[COLOR=#000080]imagesxml[/COLOR].[COLOR=#0000FF]onLoad[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
livelength = imagesxml.[COLOR=#0000FF]firstChild[/COLOR].[COLOR=#0000FF]firstChild[/COLOR].[COLOR=#0000FF]childNodes[/COLOR].[COLOR=#0000FF]length[/COLOR];  
studiolength = imagesxml…  
[COLOR=#0000FF]trace[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#0000FF]trace[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR]  
[COLOR=#0000FF]\_root[/COLOR].[COLOR=#000080]imagesxml[/COLOR].[COLOR=#0000FF]load[/COLOR]COLOR=#000000[/COLOR];  
[/LEFT]  
[/FONT]

as you can see studiolength hasnt been defined yet since I dont know how to navigate to it. I know its something simple. Any hints? Thanks a lot!  
-Ronnie
