XPath Tutorial

XPath is a language used to find information in XML documents. XPath can be used to traverse elements and attributes in XML documents.

XPath is a language used to find information in XML documents. XPath can be used to traverse elements and attributes in XML documents.

Therefore, understanding XPath is the foundation for many advanced XML applications.

Start Learning XPath !

XPath Reference Manual

At CodeW3C.com, we provide a complete reference manual for the built-in functions of XPath 2.0, XQuery 1.0, and XSLT 2.0.

XPath Functions

Table of Contents

Introduction to XPath
This chapter explains the concept of XPath.
XPath Nodes
This chapter introduces different types of nodes in XPath and the relationships between nodes.
XPath Syntax
This chapter explains the syntax of XPath.
XPath Axes
This chapter explains XPath axes (axes).
XPath Operators
This chapter lists the operators that can be used in XPath expressions.
XPath Examples
This chapter uses the "books.xml" document to demonstrate some XPath examples.
XPath Summary
This article includes a summary of the knowledge learned in this tutorial, as well as the next steps we recommend you should learn.

XPath Reference Manual

XPath Functions
Built-in functions for XPath 2.0, XQuery 1.0, and XSLT 2.0.