Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

Re: [jdom-interest] Question about selecting nodes with XPath

Clemens Eisserer

2006-01-31


Hi Mattias,

I know that this does not belong to here but to be honest I did not
find a suitable place to ask this. I searched arround with google but
it just confused me :(Thanks for ignoring this fact and ansering
anyway.

> If you want to find nodes anywhere in the tree, try prefixing with //
> instead of / (which assumes the root node)
Jep you're right, but I did not use it since I found the comment that
this does only return "first-born" elements and although I have to
admit that i don't know what that is I am afraid of loosing some
content. Is this no valid fear?

lg Clemens

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.