I am trying to evaluate the count of an xPath expression in Notepad++ using XML Tools. Unfortunately, I get the error message by the plugin "Error: error on XPath expression".
The sample data/file:
<?xml version="1.0"?>
<catalog>
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
<publish_date>2000-10-01</publish_date>
<description>An in-depth look at creating applications
with XML.</description>
</book>
<book id="bk102">
<author>Ralls, Kim</author>
<title>Midnight Rain</title>
<genre>Fantasy</genre>
<price>5.95</price>
<publish_date>2000-12-16</publish_date>
<description>A former architect battles corporate zombies,
an evil sorceress, and her own childhood to become queen
of the world.</description>
</book>
<book id="bk103">
<author>Corets, Eva</author>
<title>Maeve Ascendant</title>
<genre>Fantasy</genre>
<price>5.95</price>
<publish_date>2000-11-17</publish_date>
<description>After the collapse of a nanotechnology
society in England, the young survivors lay the
foundation for a new society.</description>
</book>
</catalog>
The goal is, to count the number of books. Any idea why my expression is not working? Is count() not supported? Thank you for any insight!
Note: I know that for this simple case, one could just use the search/count function. But my intention is, to use the count()-function on more complicated xPath expressions.
Still seems to be broken. I ended up using VS Code with the XML Tools extension...works like a charm. Thx for your testing/feedback.