I think you mean ancestors. A node can only have one parent. Parents can have many children.

I think you have a bigger issue, though. Why do you need to know the depth of an xml node? I can't think of a single example that I would need that information.


On 3/22/2010 9:27 AM, Lehr, Theodore wrote:
I am still trying to find a way to see where a child is within the xml - on 
what level... is it possible to count a nodes parents?

So if I had:

<person att="1">
       <person att="2">
            <person att="3"/>
            <person att="4"/>
       </person>
</person>

1 would return that it has 0 parents, 2 would say it has 1 parent, 3&  4 would 
say they have 2 parents....

hope that makes sense....

Ted
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to