XPath Tester
Run XPath 1.0 queries against your XML and see live results.
Drop an XML file
or paste XML below
Examples:
//book, //book[@id="1"], //book/title/text()XPath is the query language for XML. Converterzilla's XPath Tester lets you experiment with XPath expressions against any XML document — drop the XML, type your query, see the matched nodes, attributes or text values. Powered by your browser's built-in XPath engine.
How to use XPath Tester in your browser
- Drop or paste XML. Provide the XML you want to query.
- Type an XPath query. Examples: //book, //book[@id="1"], //book/title/text(). The default //* matches every element.
- Click Run XPath. Matched nodes appear below — separated by --- when there are multiple.
Why use Converterzilla for XPath Tester
Browser-native
Uses the DOM evaluate() API — same engine as your favorite browser. No plugin or external library.
Multi-result
Iterator-style result, so even XPath expressions matching hundreds of nodes work.
Type-aware output
Element matches show as XML markup; attribute matches as @name="value"; text matches as raw values.
Frequently asked questions about XPath Tester
Browsers support XPath 1.0. XPath 2.0 / 3.0 features (let-bindings, sequence functions) aren't available without an external library.
If your XML uses namespaces, you need to use them in your XPath. Namespace prefix resolution is on the roadmap.
Not yet — local-storage history is on the roadmap.
Further reading and references
- MDN — XPath — the XPath syntax reference
- MDN — Document.evaluate() — the DOM API behind this tool