uli-weltersbach / XPathTools

A Visual Studio Extension which can run any XPath and XPath function; navigates through results at the click of a button. Can show and copy any XPath incl. XML namespaces, avoiding XML namespace induced headaches. Keeps track of the current XPath via the statusbar.
41 stars 4 forks source link

Issue with function:count() #51

Open Vission01 opened 2 years ago

Vission01 commented 2 years ago

Given an example XML: `

x
<element>
    <node>x</node>
</element>
<element>
    <node>x</node>
</element>
<element>
    <node>y</node>
</element>
<element>
    <node>x</node>
</element>

`

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