Skip to main content
>_devtools

XPath Tester

Run XPath 1.0 expressions against XML with namespace prefixes; see nodes, strings, numbers, or booleans.

What it does

Evaluate an XPath 1.0 expression against an XML document. Load or edit the document and expression to inspect matching nodes or scalar results.

Example

XML:
<books>
  <book>
    <title>Dune</title>
  </book>
</books>

XPath: //book/title
Output: Dune

Limits and behavior

  • Browser XPath 1.0 is supported; XPath 2.0 and 3.x functions are not.
  • At most 1,000 matched nodes are listed. Use a prefix for elements in a default namespace.
  • Expressions and XML are evaluated locally and are not uploaded.