Parse an XPath expression and return an Expression object.
The XPath expression string.
Optionalaxis: stringOptional axis override for relative paths.
Optional XPath version (defaults to 1.0).
Parse and evaluate an XPath expression.
The XPath expression string.
The expression context.
Sort nodes in context according to sort specifications.
The expression context with nodes to sort.
Array of sort specifications.
Clear parse cache (useful for testing or memory management).
XPath class that uses the new lexer/parser implementation while maintaining API compatibility with the old implementation.