Dear all,
I am very confused because I use this XPath expression:
"info[(contains(identification-info/keyword,"Cities"))]" in order to
retrieve the below node and it runs ok, but if I use the XPath expression:
"info[(contains(identification-info/keyword,"North"))]" doesn't run.
My xml is:
<root>
...
<info>
<identification-info>
<name>Name 1</name>
<keyword>Cities of Europe</keyword>
<keyword>North Europe</keyword>
....
</identification-info>
</info>
...
</root>
I mean when I am looking for a "info" whose "keyword" is not its first child
I don't retrieve the node. Why????
I am using dom4j-1.6.1 and my code is:
String xPath = "info[(contains(identification-info/keyword,"Europe"))]"
List<Node> listNodes = myXML.getRootElement().selectNodes(xPath);
where myXML is the Document wich contains the XML.
When I run that, listNodes is empty. Is necessary any parameter in order to
selectNodes search in every child and not only in the first?
Thanks in advance and regards,
Adriana
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user