Navigation and URIs

The XPath language is useful for intradocument navigation. Despite its expressiveness, XPath stops short of supporting interdocument navigation. Rather, the Internet bias of XML relies heavily on the IETF Uniform Resource Identifier specification (RFC2396) for referencing XML documents from other XML documents. While both URNs and URLs are supported, the practical reality of today's Internet is that everything is referenced using URLs.

A URL can be absolute or relative. When an absolute URL appears in an XML document, there is no ambiguity as to how to dereference it. When a relative URL appears in an XML document, several factors come into play. By default, the URL is assumed to be relative to the entity in which it appears. ...

Get Essential XML: Beyond Markup now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.