Yeah, sorry, I mis-spoke... meant it would be nice to be able to do "//mynode" from a given node in the tree and have it not return null just because it's not root (assuming there is a "mynode" under the given node.

And actually, the current way it works is not really "contrary to xpath" because "//" means from root... hmmmm.

b


Edwin Dankert wrote:
+1 on this... always found the fact that a dom4j xpath doesn't work from
a given node down to be rather confounding... seems contrary to the xpath concept of "context node".


As far as I am aware, a dom4j XPath uses the given node as its
'context node'. (the given node is however not treated as the 'root')

Regards,
Edwin



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to