.net - xpath: preceding-sibling-or-self -
i'd preceding-sibling-or-self functionality in xpath , i'm using ../(self::*|preceding-sibling::*) , it's giving me expression must evaluate node-set., must doing wrong.
this bombs no matter context node on or xml looks like. want utilize functionality after / need right syntax that.
the xpath look (self::*|preceding-sibling::*) not give error, has place in xpath i'm trying utilize it.
edit:
my error more basic. can't ../(.|.) without error. in general, want go node, through set of nodes there. error seems correlate trying utilize union operator | after slash /.
in xpath, if want utilize union operator, must utilize @ origin of path.
(self::*|preceding-sibling::*)/child ok.
if need something/(self::*|preceding-sibling::*)/child, have expand left part out this:
(something/self::*|something/preceding-sibling::*)/child
.net xpath
No comments:
Post a Comment