The result will be automatically generated and available in the "Results" editor.
To fill "Your XML string" editor, you can:
Copy and paste your XML string
Drag and drop your XML file
Click on "Browse XML file" button in order to load your XML file
Directly type your XML string in the editor
This tool does not support the XPath functions (number(), string(), string-length() ...).
XML Path Language (XPath) is a query language for selecting nodes from a XML data.
It is based on a tree representation of the XML,
it allows to navigate through elements in an XML document.
XPath uses path expressions to select nodes in an XML document.
XPath is a W3C recommendation.
Select the tools element
Select all tool elements which are direct children of the tools element
Select all tool elements without taking into account the tree
Select the second tool element
//tool[position() = 2]
Select the value attribute of all tool elements without taking into account the tree
Select the tool element which has the id attribute value of 1
This tool uses document.evaluate function to test your XPath query.
Why use an Online XPath Tester ?
This XPath online tool does not require installation or registration, it saves time to do tests.
Moreover, it is interactive, as soon as you enter your XPath string it you can see directly what matches,
which further reduces the time required for testing.
XPath generator is a beta version, if you find a bug, do not hesitate to let us know.