XPath Tester Online
Paste XML and an XPath expression, and instantly check which nodes it selects, using the browser's native XPath engine.
XPath expression examples
A few common examples:
| Expression | What it selects |
|---|---|
| //title | Every <title> element, at any depth |
| /catalog/book[1] | The first <book> that's a direct child of <catalog> |
| //book[@id='1'] | The <book> whose id attribute is "1" |
| //book[price > 20] | <book> elements whose <price> is greater than 20 |
| count(//book) | The number of <book> elements (a numeric result) |
The browser's native engine
This tool uses document.evaluate, the browser's native XPath 1.0 implementation — not a custom JavaScript reimplementation of XPath, which would be a source of discrepancies from real behavior.
Privacy
The XML is processed in your browser. It's never sent to Numelto or to any external service.