02.06.2013 Views

XML Demystified

XML Demystified

XML Demystified

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER<br />

5<br />

XLink, XPath,<br />

XPointer<br />

Real-world <strong>XML</strong> documents can become complex and difficult to navigate,<br />

especially if they reference multiple external resources, such as other documents<br />

and images. Professional <strong>XML</strong> developers use <strong>XML</strong>’s version of a global position<br />

satellite to find elements within the <strong>XML</strong> document.<br />

<strong>XML</strong>’s global position satellite system has nothing to do with satellites. It simply<br />

provides three clever features that you can use to find your way around the document.<br />

These features are XLink, XPath, and XPointer.<br />

XLink hooks up your document with any number of external resources while<br />

XPath and XPointer show your parser how to navigate around the document to find<br />

the piece of the document that you need to process.<br />

Sounds confusing? We’ll, it won’t be by the time you finish this chapter.<br />

Copyright © 2005 by The McGraw-Hill Companies. Click here for terms of use.<br />

69

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!