[jdom-interest] Finding XPath location for an Element

cliff palmer palmercliff at gmail.com
Tue Jan 10 10:46:07 PST 2012


I'd like to be able to find the XPath search or the node hierarchy for
an Element.  For example, if the Element is <d> in:
<a>
    <b>
           <c>
                 <d> </d>
           </c>
     </b>
</a>

I'd like to have either the XPath search argument ("/a//b//c//d) or
the list of nodes in the elements parents ("a b c d").

Is there a method that returns this?

Cliff


More information about the jdom-interest mailing list