hi friends,
i am the new member of this forum
i have been trying to generate a family tree
there may be 3 levels for each node. In the same level user can add siblings. and in the upper level there may user can add parents and in the lower level user can add child node. this may continue to n level for each node. this code should be able to interact with database. i dont understand how to approach this problem.please anyone can help
thanks in advance ,
amit
problem generating family tree structure
Moderator: General Moderators
cant follow
plz can u make it clear with an example
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
Well I have a half-sister and that creates a real problem for using any nesting as a structure.
So I've decided this is probably the only robust way of doing it:
So I've decided this is probably the only robust way of doing it:
Code: Select all
<personIndex>
<person name="Geoff" id="1" gender="m" />
<person name="Pam" id="2" gender="f" />
<person name="Viv" id="3" gender="f" />
<person name="Oliver" id="4" parents="1 2" gender="m" />
<person name="Bonnie" id="5" gender="f" parents="1 3" />
</personIndex>
sorry problem
i really cant get u i think u r not able to get my problem its not a parent child relationship
Re: problem generating family tree structure
eh, it's not?
Then what is it?amitsri wrote:and in the upper level there may user can add parents and in the lower level user can add child node.