XPath tutorial

May 28, 2021 00:00 XPath

Table of contents

XPath tutorial

XPath is the XML path language.

XPath is a language that looks for information in an XML document.

XPath is the primary element in XSLT.

Both XQuery and XPointer are built on XPath expressions.

Start learning XPath now!

XPath reference manual

At W3CSchool, we offer a complete built-in function reference manual for XPath 2.0, XQuery 1.0, and XSLT 2.0.

XPath function

The list of contents

Introduction to XPath
This chapter explains the concept of XPath.

XPath node
This chapter details the different types of nodes in XPath and the relationships between them.

XPath syntax
This chapter explains the syntax of XPath.

XPath Axis (Axes)
This chapter explains the XPath axes (axis).

The XPath operator
This chapter lists the operators that can be used for XPath expressions.

XPath instance
This chapter uses the "books.xml" documentation to demonstrate some XPath instances.

XPath summary
This article includes a summary of what you learned in this tutorial and what we recommend to you next.

Related tutorials

XML tutorial