Extra XPointer features
XPointer provides a more fine-grained addressing than XPath.
- Instead of just nodes, XPointers address locations,
which can be nodes, points, or ranges.
- A point can represent the location preceding or following
any individual character in a chardata node.
The special node test
selects the set of points of a node.
- A range consists of two points in the same document,
specified using a range expression of the form
expr to expr.
- XPointer provides some extra functions:
get location of element containing current XPointer
get location where user initiated link traversal
get start point of location set
find matching substrings
selects the first character of all character data nodes in the document.
/section to /section
selects everything from the beginning of the first section to
the end of the third.