Test XPath

With this plugin, XPath queries can be executed on XML files.

images/download/attachments/119252571/1380-version-1-modificationdate-1673929583274-api-v2.png


(1) The data to which the XPath expression (2) is applied. Note: Please note that the data must not exceed 1 MB (file size if taken from file).

(2) The XPath expression applied to (1). The XPath syntax will not be discussed in detail here . However, you can find many examples on the internet.

(3) Execute query.

(4) The result of the query.

Example File


<?xml version="1.0" encoding="UTF-8"?>
<root>
<expensive>10</expensive>
<store>
<bicycle>
<color>red</color>
<price>19.95</price>
</bicycle>
<book>
<element>
<author>Nigel Rees</author>
<category>reference</category>
<price>8.95</price>
<title>Sayings of the Century</title>
</element>
<element>
<author>Herman Melville</author>
<category>fiction</category>
<isbn>0-553-21311-3</isbn>
<price>8.99</price>
<title>Moby Dick</title>
</element>
<element>
<author>J.R.R. Tolkien</author>
<category>fiction</category>
<isbn>0-395-19395-8</isbn>
<price>22.99</price>
<title>The Lord of the Rings</title>
</element>
</book>
</store>
</root>