XPath - XML | MDN

Guides

The XPath guides cover practical snippets and describe how to use XPath in JavaScript.

Introduction to using XPath in JavaScript

Describes a non-XSLT use of XPath.

XPath snippets

These are JavaScript utility functions, that can be used in your own code, based on XPath APIs.

Reference

The XPath reference covers all XPath axes and functions documented on MDN.

XPath:Axes

List and definition of the axes defined in the XPath specification. Axes are used to describe the relationships between nodes.

XPath:Functions

List and description of the core XPath functions and XSLT-specific additions to XPath.

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.