Chapter 11. Locating Components in XML Documents with XPath

by Andrew Watt

In this chapter

What Is XPath?

XPath Concepts

XPath Node Types

XPath Axes

XPath Functions

Extra: XPath 2.0

Additional Resources

Roadmap

One of the fundamental things that you need to do when retrieving or manipulating any XML content is to locate the part of the XML document that you want to work on. If you want to extract selected XML information, you need a syntax to unambiguously express the parts of the XML document you want to extract. XPath provides that syntax.

Get Special Edition Using XML, Second Edition 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.