Paste XML or HTML, write an XPath expression, run it with the browser's native document.evaluate and inspect every matched node.
Result0
Paste well-formed XML (or HTML — auto-detected on parse error). Type any XPath 1.0 expression supported by the browser: absolute paths, //tag, @attr, text(), [position()], predicates, and so on. Click Evaluate: the page uses document.evaluate with an ordered snapshot, then lists each matched node with its type (element, attribute, text, comment) and text content. The match counter updates live. Click "Load sample" for a one-click demo.