Skip to content

XPath Tester

Run XPath 1.0 expressions against an XML document and see the matching elements, attributes or values.

Runs in your browserXML + XPath → Matches
Loading tool…

How to use the XPath Tester

  1. Paste an XML document and type an XPath expression such as //book/title or count(//book).
  2. Results update as you type: node sets list each match; count(), string() and boolean expressions show a single value.

Privacy and limitations

  • Your data is processed on your device and is not uploaded to any server.
  • Uses the XPath 1.0 engine built into your browser; XPath 2.0/3.1 functions are not available.

Frequently asked questions

Why does //title match nothing in my document?

If the document declares a default namespace (xmlns="..."), unprefixed names in XPath 1.0 do not match it. Use local-name(), e.g. //*[local-name()="title"].

Browse all xml converters →