XPointer points to the document fragment which can be a node, part ofa  node or few words in the text. XPointer specifies URI’s mapping to the document fragment. XPointer adds features which are not supported in XPath. It is used in XLink and XQuery. XPointer expression consist of XPath as XPointer(XPath) given below.

XPath points to an elements of an XML document and is says nothing about URI itself. XPath is used in XPointer, XSL, XML Schema, XQuery. XPath uses path expressions to select nodes or node-sets.


›› go to examples ››