XML Node reading problem... Urgent

This seems so long but i just give the whole things to get an indea.

This is the structure of XML File (genealogy.xml) and call as an external file.


<?xml version="1.0" encoding="iso-8859-1"?>
<genealogy>
<g1>
<Director title = "Son" />
<Seffire title = "Daughter" />
<Jain title = "Sister" />
<Stropper title ="Mother" />
<Pegy title ="Mother" descr = "Flash provides movie clips with defined parameters, called components, to aid in developing rich user experiences in Flash movies." thumb = "thumbs/person1.jpg"/>
<Aimy title ="Daughter" descr1 = "For an interactive introduction to components, choose Help > Tutorials > Introduction to Components" thumbone = "thumbs/person2.jpg"/>
</g1>
<g2>
<Mahin title = "Son" />
<Jeffy title = "Daughter" />
<Reetha title = "Sister" />
<Developer title ="Mother" />
<EzyOhia title ="Mother" descr = "Flash provides movie clips with defined parameters, called components, to aid in developing rich user experiences in Flash movies." thumb = "thumbs/person1.jpg"/>
<Okachi title ="Daughter" descr1 = "For an interactive introduction to components, choose Help > Tutorials > Introduction to Components" thumbone = "thumbs/person2.jpg"/>
</g3>
</genealogy>

Read the first group of people i use the following code


on (press, release) {
_root.dispTree(xmlStr.firstChild.firstChild, 6);
} 

The result is “Director to Aimy” get from the function works fine :slight_smile:
But i want to add next geneation like with a group of people in The XML how to read that…
Is it like ???


on (press, release) {
_root.dispTree(xmlStr.firstChild.firstChild.firstChild, 6);
} //How to avoid firstChild.firstChild.firstChild.....and so on 
Any suggestion will really appreciable 

:diss: