/a/b/a/c/*/d
//a/b/a/c/*/d
//a[./d/e]/b//a[./f/*//g/h][./u/h]//c/*/d
//a/e//f[./ancestor::f/parent::*]//a[./ancestor::g][./parent::g]//c/*/d
/a/e//f[./ancestor::f/preceding-sibling::g]//a/following-sibling::c/*/d
<a><b></b><c></c><b></b></a>
XPathEval
.
> XPathEval h.xml "/a/b" 2 4 > XPathEval h.xml "//c" 3 > XPathEval h.xml "//*" 1 2 3 4
/*/a/b/*
this is the
result/b/b/c
this is the
result/*/*/*/*/*/*/*/*/b/b/c
this is the
result//a/c/*
this is the
result//b/c/b
this is the
result//a[./b/c]
this is the
result//a[./b]//c[./c/b]
this is the
result//a[./parent::b]//b[./ancestor::a/parent::c]
this is the
result//b[./parent::b/parent::a/parent::b]/c/*[./ancestor::a]
this is the
result//a[./parent::b]/following-sibling::b[./ancestor::a/preceding-sibling::c]
this is the
result/*//a/following-sibling::c[./ancestor::a/parent::b]//*[./preceding-sibling::c]
this is the
result