XML Pointer Language (XPointer) allows addressing the internal structures of XML documents. It allows for examination of a hierarchical document structure and choice of its internal parts based on various properties, such as element types, attribute values, character content, and relative position.
See XML Linking Language (XLink).
More information: XPointer
page on the W3C Web site (new window)