XPath Tester Online

Paste XML and an XPath expression, and instantly check which nodes it selects, using the browser's native XPath engine.

Local processing: your data is processed in your browser and never sent to Numelto or any external service.

XPath expression examples

A few common examples:

ExpressionWhat it selects
//titleEvery <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.

Frequently asked questions

Related tools

We use analytics cookies to understand which calculators are useful. They are never used for advertising. More information in our privacy policy.