Java Mailing List Archive

http://www.junlu.com/

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

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

Paul Libbrecht

2006-02-02

Replies:

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...

paul

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
>
>  

_______________________________________________
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.