Suppose you may need to point into non-XML
substructure in the text content of particular elements; for example the month
in a BORN
element that looks like this:
<BORN>11 Feb 1858</BORN>
The string
axis selects one or more occurrences of a specified string
One of the least stable parts of XPointer; may be added to XPath in the future
This selects all occurrences of the string "Harold":
xptr(/string::"Harold")
String location terms may have node tests:
xptr(/string::"Harold"[position()=1])