Quick Examples:
Results
0 matches
XPath Quick Reference
Basic Selectors
//tag- All elements with tag/tag- Root element with tag.- Current node..- Parent node
Attributes
@attr- Select attribute[@attr='value']- By attribute value[@attr]- Has attribute
Functions
text()- Text contentcontains()- Contains textposition()- Element positioncount()- Count elements
Axes
child::- Child nodesparent::- Parent nodefollowing::- Following nodespreceding::- Preceding nodes