# XML Genealogy

**URL:** <https://forum.kirupa.com/t/xml-genealogy/125684>\
**Category:** Uncategorized\
**Created:** [October 16, 2004, 8:58am UTC](https://forum.kirupa.com/t/xml-genealogy/125684 "2004-10-16T08:58: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:** [October 16, 2004, 8:58am UTC](https://forum.kirupa.com/t/xml-genealogy/125684/1 "2004-10-16T08:58:17Z")

</div>

/\*  
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  
\*/

```auto
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:  
\*/
