XPathTools icon indicating copy to clipboard operation
XPathTools copied to clipboard

Issue with function:count()

Open Vission01 opened this issue 2 years ago • 0 comments

Given an example XML: <object> <element> <node>x</node> </element> <element> <node>x</node> </element> <element> <node>x</node> </element> <element> <node>y</node> </element> <element> <node>x</node> </element> </object>

This seems to work:

count(object/element[node='x'])

This does not:

object/count(element[node='x'])

You get: Error evaluating XPath

This works in other XPath tools, such as: https://www.freeformatter.com/xpath-tester.html#before-output

Vission01 avatar Jul 12 '22 15:07 Vission01