XML XPath Tester

Evaluate XPath against real XML documents — application/xml parsing, case-sensitive tags, and namespace-aware queries, fully client-side.

100% In-Browser & Private — your data never leaves this device
Loading tool...

How to use the XML XPath Tester

  1. Paste a well-formed XML document (or load the bookstore sample).
  2. Enter an XPath expression such as //book[price<10]/title.
  3. Review matched nodes — XML is parsed as application/xml (case-sensitive).
  4. For HTML pages and scraping markup, use the XPath Tester (HTML) instead.

FAQ

How is this different from the HTML XPath Tester?
This tool uses application/xml so tag names stay case-sensitive and the tree is a real XML document. The HTML tester uses text/html and browser HTML normalization.
Do namespaces work?
Yes. The default namespace of the document element is resolved for unprefixed names when present. Use explicit prefixes that match xmlns declarations in your XML when needed.
Is my XML uploaded?
No. Parsing and XPath run entirely in your browser.

Related tools

More private, in-browser utilities you might need next.

Looking for more? Browse all developer tools · All tools