Test XPath
With this plugin, XPath queries can be executed on XML files.
Settings
(1) Test data: 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) XPath term: 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: Click this button to run the test.
(4) Test result: Output of the test.
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
>