Count the number of nodes that match a given XPath expression in XmlSpy

I use XmlSpy to parse an xml file, and I want to get a quick count of the number of nodes that match a given xpath. I know how to enter XPathand to get a list of nodes, but I'm really interested in the account. Can this be obtained?

I am using XmlSpy Professional Edition version sp2 version 2.0, if that matters.

+4
source share
1 answer

I just got it. I just needed to put count () around my xpath, for example:

count(//my/node) 
+4
source

Source: https://habr.com/ru/post/1276630/


All Articles