Hallo list,
i have a xpath-problem with position().
I have a document like this:
<root>
<item>1</item>
<item>2</item>
<item>3</item>
</root>
I get a list of nodes from the document with selectNodes("/root/item"). Now
I iterate over the list and do some more xpath on every single node, and
here is the problem.
The following xpath says always 0 for the position. Why?
node.valueOf("position()") returns 0
But when i get the unique path from the node with node.getUniquePath() there
is the right position displayed.
e.g.: node.getUniquePath() returns /root/item[1]
What I have to change?
Sven
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user