Expand description
Node operations for XPath evaluation.
This module implements XPath 2.0 node comparison and navigation operations:
is(node identity)<<(precedes in document order)>>(follows in document order)- Root navigation
Functionsยง
- are_
siblings - Check if two nodes are siblings (same parent).
- compare_
document_ order - Compare two nodes by document order.
- context_
node - Get the context node from an optional context.
- following_
node - Check if node
afollows nodebin document order. - get_
root - Get the root node from a given node.
- is_
ancestor - Check if node
ancestoris an ancestor of nodedescendant. - is_
descendant - Check if node
descendantis a descendant of nodeancestor. - is_root
- Check if a node is the document root.
- preceding_
node - Check if node
aprecedes nodebin document order. - same_
node - Check if two nodes are identical (same node).