Nifty / Tools / XML

XPath Tester

Evaluate an XPath expression against your XML and see each match with its line number.

xpath-tester
XMLDrop a file here
Results
Loading…

Runs in your browser. Nothing you paste is uploaded or stored.

How to use the XPath Tester

  1. Paste XML on the left.
  2. Type an XPath expression above, such as //book[price < 10]/title.
  3. Matches appear on the right with their line numbers.

Questions

Is my data uploaded anywhere?

No. The tool runs entirely in your browser. Nothing you paste or drop is sent to a server, logged or stored, so it's safe for API responses, config files and other private data.

How do I query elements in a default namespace?

Use the ns: prefix, for example //ns:book. Prefixes declared in the document, like dc:, work as they are.

Can I get numbers, not nodes?

Yes. Expressions like count(//book) or sum(//price) return their value.

Related tools