XML Genealogy

/*
Actually I’m a new comer using XML so i’m in a bit confusion how to make it out…
This is the actual code
*/

xmlStr = "<?xml version=\"1.0\"?><genealogy><MT><gfather>Sree</gfather><father>SreeRaj</father><daughter>Maya</daughter></MT></genealogy>";
myXml = new XML(xmlStr);
rootNode = myXml.firstChild;
genealogy = rootNode.firstChild;
children = genealogy.childNodes;
for (i=0; i<children.length; i++) {
 trace(children*.firstChild.toString());
}

/*
The output comes like this
Sree
SreeRaj
Maya
//-----------------------------------------------
This is only a prototype of the tree what i’m going make. In the stage empty movieclips with dynamic text
area is made for holding the data that is being loaded from XML. The problems is how can put the
output values to a dynamic text area.
There is a root person and we’ve to “show” how each and every member of this tree relate to that partilar
root member.
In the stage we’re having the slots for daughter, son, father, grandfather, grandmother, wife and so on. When
the user request for the relationship of a person to root member the tree should be automatically formed
and showing how the requested person related to the root member.

The question is how to track the who is the clicked person, and how to add that person to a holder clip??? :upset:
*/