Free · Server conversion · No sign-up

XML XPath Tester

Evaluate XPath 1.0 expressions against XML with an explicit namespace map and structured node or scalar results.

Your input is sent to this site only after you choose Convert on server. The conversion runs for this request and no history is saved. Upload up to 4 MiB combined; Office files have a 2 MiB limit.

STEP 1

Enter your text

Edit the example text or paste your own content.

STEP 2

Choose your options

The defaults work for most files. Change a setting only when you need to.

How to use XML XPath Tester

  1. Load the example or paste your own input.
  2. Review the settings, then select Convert on server to send input for processing.
  3. Review the result, then copy or download it.

What this tool helps you do

Test a query against XML data rather than a browser-repaired HTML fragment. Enter an XPath expression and, when needed, map prefixes to namespace URIs in a JSON object. The result identifies selected nodes or a scalar string, number or boolean. A prefix in the query must be explicitly mapped even when the source uses a default namespace.

Format rules and limitations

The evaluator supports XPath 1.0 and does not add XSLT functions, JavaScript or network access. DTDs and entity declarations are rejected. XML must be well formed, with bounded node count and depth; result node lists are limited to one thousand entries. Namespace-aware XML queries differ from the existing HTML XPath tester, which parses HTML. Inspect serialized node results as data rather than inserting untrusted markup into a live page.

Example input

<catalog><book id="a"><title>First</title></book><book id="b"><title>Second</title></book></catalog>

What should I check before relying on the output?

The evaluator supports XPath 1.0 and does not add XSLT functions, JavaScript or network access.

Is input uploaded?

This tool sends input to this site’s conversion API after you select Convert on server. Files use bounded workers and, when needed, private temporary folders deleted after processing or cancellation. No conversion history is saved. The converter does not upload files to a third-party conversion service.

Related tools and guides

Browse all developer tools