to the main page... about these slides...

Extra XPointer features

XPointer provides a more fine-grained addressing than XPath.

Example 1:

  /descendant::text()/point()[position()=0]

selects the first character of all character data nodes in the document.

Example 2:

  /section[1] to /section[3]

selects everything from the beginning of the first section to the end of the third.