Given a data structure:
<record id=1 parent=”Jack”>Jack
Jr</record>
<record id=4 parent=”Jack”>William</record>
<record id=3 parent=”Jack Jr”>Jack III</record>
<record id=7 parent=”William”>William Jr.</record>
<record id=7 parent=”William Jr”>William III</record>
<record id=7 parent=”William III”>William IV</record>
How do I get…
Jack
Jack Jr.
Jack III
William
William Jr.
William III
William IV
Special problems.
- The number of generations can
be infinite.
- Please note I don’t have
a Jack record, but I need to display Jack.
Anyone got any ideas?
Thanks,
Jody