# XML Array Index. Help me pls

**URL:** <https://forum.kirupa.com/t/xml-array-index-help-me-pls/159404>\
**Category:** Uncategorized\
**Created:** [August 17, 2005, 8:46am UTC](https://forum.kirupa.com/t/xml-array-index-help-me-pls/159404 "2005-08-17T08:46:25Z")\
**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:** [August 17, 2005, 8:46am UTC](https://forum.kirupa.com/t/xml-array-index-help-me-pls/159404/1 "2005-08-17T08:46:25Z")

</div>

\<?xml version=“1.0” encoding=“iso-8859-1”?\>  
\<genealogy\>  
\<g1\>  
\<Director title = “Son” /\>  
\<Seffire title = “Daughter” /\>  
\<Jain title = “Sister” /\>  
\<Stropper title =“Mother”\>  
\<Kirupa name = “Kirupa”/\>  
\<NovemberRain name = “November Rain”/\>  
\</Stropper\>  
\</g1\>

\</genealogy\>

Above is the XML file. I’ve a function to reade the nodes of the XML that is “dispTree”. xmlStr is the XMl Object.

\_root.dispTree(xmlStr.firstChild.childNodes[1], 3);

The call returns “Jain”

What is arrat index we can refer Kirupa.

is it something like \_root.dispTree(xmlStr.firstChild.childNodes[1], [3][1]);

I’m little confused how to pass that node index to dispTree function (Kirupa node)

Any help will really appreciable:ponder:
