# Need HELP! with xml

**URL:** https://forum.kirupa.com/t/need-help-with-xml/298787
**Category:** Uncategorized
**Created:** [October 25, 2009, 5:51am UTC](https://forum.kirupa.com/t/need-help-with-xml/298787 "2009-10-25T05:51:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![darkblade3276](https://avatars.discourse-cdn.com/v4/letter/d/5f8ce5/32.png) [@darkblade3276](https://forum.kirupa.com/u/darkblade3276)
#### Post date: [October 25, 2009, 5:51am UTC](https://forum.kirupa.com/t/need-help-with-xml/298787/1 "2009-10-25T05:51:19Z")

</div>

.: Problem Solved :.  
Well i just started in XML in flash and i can’t figure out how to get to the data in slide1[see below] i have the first two nodes correct:

```auto
_root.main = this.firstChild.childNodes[0].firstChild.nodeValue;
_root.paragraph = this.firstChild.childNodes[1].firstChild.nodeValue;

```

but i can’t figure out the third node, slides, these are the ways iv’e tried[that failed]:

```auto
this.firstChild.childNodes[2].childNodes[0].firstChild.nodeValue;
this.firstChild.childNodes[2].firstChild.nodeValue;
this.firstChild.firstChild.firstChild.childNodes.firstChild.nodeValue;

```

Here is the XML file[the actual file does not have the labels]

```auto
/*firstChild*/<content>
	/*childNodes[0]*/<title>Title</title>
	/*childNodes[1]*/<main>Main paragraph</main>
	/*childNodes[2]*/<Slides>
		/*childNodes[0]*/<slide1>Info on Slide 1</slide1>
		/*childNodes[1]*/<slide2>Info on Slide 2</slide2>
		/*childNodes[2]*/<slide3>Info on Slide 3</slide3>
	/*End childnodes[2]*/</Slides>
	/*childNodes[3]*/<img>
		/*childNodes[0]*/<img1>img1.png</img1>
		/*childNodes[1]*/<img2>img2.png</img2>
		/*childNodes[2]*/<img3>img3.png</img3>
		/*childNodes[3]*/<BGimg>bgimg.png</BGimg>
	/*End childNodes[3]*/</img>
	/*childNodes[4]*/<SiteUrl>www.70moremartians.com</SiteUrl>
</content>

```

Thank you for your time.:suppose\_maybe:  
.:Edit:.  
Sorry, i figured it out it was a wrong variable name  
.:/edit:.
