hi guys,

I'm trying to get started with dom4j, and I need a
little help:

- Node.getUniquePath() does not give me a unique path>
If I have this xml:

<root>
  <section>
       <page></page>
  </section>
  <section>
    <page>i am here</page>
</root>

and my node is pointing to the second <page> tag,
 and I do getUniquePath(), instead of getting
/root/section[2]/page ,
I get
/root/section/page

So I cannot navigate back to where I was using that
XPath string ( I would go to the first <page> )
maybe I don't understand Xpath?

- how do I switch back and forth between Node and
Element? Say I do Node n =
Document.SelectSingleNode("XPath exp.."). How do I
make it into an Element ? And the other way around ?
Is Branch involved in any way?

Thanks for your patience :)

piero de salvia


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to