XPointer enables hyperlinks to point to more specific parts (fragments) of XML documents.

XPointer syntax syntax

In HTML, we can create a hyperlink (using #) that points to both an HTML page and a bookmark within the HTML page.

Sometimes it would be beneficial to point to more specific content. For example, we need to point to the third item in a specific list, or to the second line of the fifth paragraph. It's easy to do with XPointer.

XPointer syntax example

href="http://www.example.com/cdlist.xml#id('rock').child(5,item)"