O'Reilly logo

Special Edition Using XML, Second Edition by - et al. David Gulbransen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What Is XPath?

XPath is a language intended to be used with XML documents in order to allow addressing of selected parts of an XML document. This allows some desired process to be carried out on that selected data—perhaps some form of data retrieval or manipulation.

One of the major advantages of XPath is that we simply declare the part of the document that we want to select. We don't have to spell out step-by-step in lengthy code how a processor does the work of locating and navigating to the desired node. The XPath processor does that work for us.

XPath is not written in XML. It more resembles the kind of path information that your operating system might show you or that you frequently see within URLs. One reason XPath is not written in XML ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required