[jdom-interest] path to root

Laurent Bihanic laurent.bihanic at atosorigin.com
Thu Oct 11 00:24:35 PDT 2001


Mark Ayad wrote:

> Hi everyone,
> 
> when I'm on the dir node test6 is their 
> an easy way to obtain the path to root.
> 

No, you have to loop calling getParent() and testing on parent != null and 
isRootElement() == false and build you own path string.

Laurent




More information about the jdom-interest mailing list