Finding XPath location for an Element

cliff palmer <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <CABhr9SuMPPJmewf16o8NEXiBD+Wi_QxS9tch+EJ1FPRFknoTuA@mail.gmail.com>
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
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.