XPath tester

Run XPath 1.0 queries on local XML and inspect matching nodes.

Processed on your device

Input

Open a local UTF-8 text file5 MiB maximum. The file opens in the text box above.Or drop a file here.

Options

Options
Map prefixes to namespace URLs, for example {"x":"https://example.com/schema"}, then use x: in the XPath. Leave {} for no mappings.

How to use this tool

  1. Paste XML and an XPath 1.0 expression.
  2. For namespaced XML, map prefixes to namespace URIs in the options.
  3. 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 & csv