Skip to main content
HandyWeb

XPath Tester

Test an XPath expression on XML and see the matching nodes with their paths. Functions like count() and sum() and namespaces are supported.

0 characters0 bytes

XPath 1.0 with the browser's own engine. If the document has a default namespace, write names with the prefix, as in //d:item.

How to Use It

  1. Paste the XML.
  2. Type the XPath expression.
  3. Read and copy the nodes or the result.

Questions and Answers

Why does //item find nothing?

If the document has a default xmlns, every name is in that namespace. Write it with the prefix: //d:item.

Good to Know

XPath 1.0 only, because browsers have no XPath 2 or 3. Up to 1,000 nodes are shown.

Source code of this tool (opens in a new tab)Report a problem on GitHub (opens in a new tab)