How to use the XPath Tester
- Paste XML on the left.
- Type an XPath expression above, such as //book[price < 10]/title.
- 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.