|
|
| / | Child nodes.
Example: myfile.xml#xpointer(catalog/book) Matches all book child elements within the catalog element. |
| // | Descendant nodes.
Example: myfile.xml#xpointer(catalog//last) Matches all last elements anywhere within the catalog element. |
| | | Used to specify multiple nodes.
Example: myfile.xml#xpointer(//first|//last) Matches all first and last elements anywhere in the document. |
| * | Wildcard.
Example: myfile.xml#xpointer(//chapter/*) Matches all child elements of chapter elements anywhere in the document. |
| @ | Attributes.
Example: myfile.xml#xpointer(//book/@used) Matches the used attribute of the all book elements in the document. |
| [ ] | Tests.
Example: myfile.xml#xpointer(//book[@used="YES"]) Matches all book elements with a used attribute equal to YES. |
| [n] | Position.
Example: myfile.xml#xpointer(//book[3]) Matches the third book element in the document. |
| id() | Identifies nodes with a particular id. Example:
myfile.xml#xpointer(id("Tagore1")) Matches the element with an id attribute equal to Tagore1. |
| descendant() | Like // |
| ancestor() | Identifies ancestor nodes. Example: myfile.xml#xpointer(ancestor(id("Tagore"))) Matches the element that contains the element with an id attribute equal to Tagore. |
| preceding() | Identifies preceding nodes. |
| following() | Identifies nodes that appear after the current node. |
| preceding-sibling() | Identifies sibling nodes that appear before the current node. |
| following-sibling() | Identifies sibling nodes that appear after the current node. |
|
|