XPath tester
Run XPath 1.0 queries on local XML and inspect matching nodes.
Bookmark this page
Keep this page handy for next time.
- On a computer
- Press Ctrl + D, or Command + D on a Mac.
- On a phone or tablet
- Open your browser's menu or Share menu and look for Add Bookmark, Bookmark or Add to favourites.
A bookmark saves the page link. Save any tool results separately.
How to use this tool
- Paste XML and an XPath 1.0 expression.
- For namespaced XML, map prefixes to namespace URIs in the options.
- Queries can return nodes, text, booleans or numbers.
Things to know
- DTDs and entity declarations are rejected. No external resources are fetched.
- Each text input accepts up to 5 MiB. Output is limited to 25 MiB and combined text settings to 1 MiB.
- Structured documents accept up to 128 nesting levels and 250,000 values; query and schema modes have additional limits.
- Expressions accept 4,096 characters and at most 10,000 output matches. Markup accepts 128 nesting levels and 100,000 tags and attributes.
You might also need
More in data & csvXML formatter and validator
Check XML syntax and format element structure without fetching resources.
CSV joiner
Join two CSV tables on a shared key using inner or left joins.
CSV row filter
Keep CSV records matching text or numeric conditions in a selected column.
CSV viewer and editor
Inspect CSV as a table and edit an individual cell by row and column.
ZIP file extractor
Inspect and extract a supported ZIP archive locally, with limits on expanded files and sizes.
JSON formatter and validator
Validate and format JSON without rounding large integers.
Bar, line and pie chart maker
Turn labelled values into a bar chart, line graph or pie chart with a clear preview, SVG image and CSV download.
Bulk file renamer
Preview new filenames with prefixes, replacements and numbering, then download a renamed ZIP.
CSV and JSON converter
Convert CSV records to JSON and JSON records to quoted CSV.