# XML node reading problem

**URL:** <https://forum.kirupa.com/t/xml-node-reading-problem/69419>\
**Category:** flash\
**Created:** [November 4, 2004, 8:15am UTC](https://forum.kirupa.com/t/xml-node-reading-problem/69419 "2004-11-04T08:15:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NovemberRain](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@NovemberRain](https://forum.kirupa.com/u/NovemberRain)\
**Post date:** [November 4, 2004, 8:15am UTC](https://forum.kirupa.com/t/xml-node-reading-problem/69419/1 "2004-11-04T08:15:17Z")

</div>

I’ve an XML File like this

```auto
   <?xml version="1.0" standalone="yes" ?> 
- <mypictures>
- <family>
  <Abhilash title="WebDesigner" /> 
  <Shon title="Programmer" /> 
  <Rajan title="WebSupport" /> 
  </family>
- <vacation>
  <Siva title="WebAssistant" /> 
  <Reji title="Designer" /> 
  <Sam title="Support" /> 
  </vacation>
  </mypictures>

```

I can access the first node like this

```auto
  
news = new XML();
news.ignoreWhite = true;
news.load("family.xml");
news.onLoad = function(success){
if(success){
rootNode = news.firstChild.firstChild;
}

```

The result contains [Abhilash to Rajan]  
The file will be populated with more nodes on later . But i want to know how to access the second child of the root node  
It is possible like

```auto
 
rootNode = news.firstChild.firstChild.nextSibling;
 

```

Result contains [Sive to Sam]  
But the file populated with more node i don’t think it is a good practice. Any other way to get the rest of the nodes in the future. :red:
