WHAT IT DOES
Test the XPath your browser can actually evaluate.
Paste XML, enter an XPath expression, and inspect the native browser XPath 1.0 result as nodes, text values, or document paths. The evaluator parses a separate XML document, never injects it into the page, and keeps namespace mappings explicit so a prefix cannot quietly mean something different from the document you are testing.
Why use it?
Use it to test an XML selector against the actual document and inspect whether it selected nodes, a scalar value, or nothing.
How to use this tool
- Paste XML and enter an XPath 1.0 expression, such as //item to select unnamespaced item elements.
- For namespaced XML, add prefix=URI mappings and use those prefixes in the expression. An unprefixed name does not select elements merely because they use a default namespace.
- Test and inspect paths and values before using the expression elsewhere. XPath 2.0 and 3.1 functions are outside the browser evaluator.
Details and limitations
- Browser-native document.evaluate is used, so the supported expression language is XPath 1.0 rather than an XPath 2.0 or 3.1 server extension.
- Node results are shown as escaped text, values show textContent, and paths include sibling indexes when they are needed to identify a node.
- Namespace mappings use one prefix=URI line and an unknown prefix is reported before evaluation.
- Malformed XML and invalid XPath expressions are errors; user XML is never treated as page markup.