You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
hunterhacker edited this page Oct 13, 2011
·
3 revisions
Simplified XPath
Simplified XPath statements look and feel exactly like traditional XPath 1.0 statements but only support positional predicates, not boolean predicates. For example, here are some valid simplified XPath statements:
Notice how all the predicates simply contain positional information (fetch me the first bar or the second baz). Predicates that contain logic (eg: foo[bar = "baz"]) are not valid.
Supported XPath Axis
ancestor::
ancestor-or-self::
attribute:: (@ shortcut is also supported)
child::
descendant::
descendant-or-self:: (// shortcut is also supported)
following::
following-sibling::
preceding::
preceding-sibling::
namespace::
parent:: (.. shortcut is also supported)
self::
Discussion
Or expressions like /message/headers/(a|b) aren't allowed. They'd sure be handy though.