Parsing and evaluation
The XML text is parsed into a document tree, then your expression is evaluated against it using an XPath 1.0 engine. Axes (child, descendant, attribute, following-sibling, etc.), predicates, and core functions (contains, position, count, string comparisons) are supported as defined in the XPath 1.0 recommendation.