XPath Tester

Evaluate XPath 1.0–3.1 expressions against XML and inspect typed results.

XML

Results (0)

About

Test modern XPath queries in the browser and view elements, attributes, text, numbers, and booleans as readable results.

Key Features

  • XPath 1.0, 2.0, 3.0, and 3.1
  • Node and scalar results

How to use

  1. 1Paste well-formed XML.
  2. 2Enter XPath and evaluate it.

Example

Input

//book[@lang="en"]/title
<books><book lang="en"><title>ToolHub</title></book></books>

Output

<title>ToolHub</title>

Limitations

  • Input is limited to 2,000,000 characters to keep the browser responsive.
  • External documents and network access from XPath are not enabled.
  • All input is processed locally in your browser and is never uploaded to ToolHub.

Last reviewed:

Related Tools