[jdom-interest] Question about selecting nodes with XPath

Paul Libbrecht paul at activemath.org
Thu Feb 2 01:00:52 PST 2006

I think that one of the errors could be that the root node is not 
correctly interpreted by Jaxen's JDOM navigator. I tended to observe 
this on cloned Element objects, i.e., on nodes that did not have a 
parent document...


Clemens Eisserer wrote:
> Hi again,
> Thanks for the tons of suggestions!
> Now everything works fine!
>> If you're selecting with the root as context node, //a:displayname will
>> select all the a:displayname elements
> Yes I am selecting with root as context node, so it should do exactly
> what I would like it to do :)
>> You might be encountering the same bugs as I did, namely, that of //elt
>> seems not to select the child... I think it's a bug of Jaxen. It happens
>> with both plain Jaxen and JDOM wrapper for it to me. Changing the path
>> to .//elt worked for me though.
> For now everything works like it should, but if I encounter problems
> I'll give it a try.
> Thanks again, lg Clemens

More information about the jdom-interest mailing list