I’m having trouble using xPath functions. The manuele states “XPath 1.0 query” support, but I get an error when executing a query which contains a xpath function.
This works…
Var nodes As XmlNodeList
nodes = xml.XQL("/Export/publication/issue")
This doesn’t work…
Var nodes As XmlNodeList
nodes = xml.XQL(“count(/Export/publication/issue)”)
xml.XQL returns a xmlNodeList not an integer… If you want to find out how many nodes there that meet that xpath then get the XMLNodeList and use its Length property.
I’m building a small app which allows users to enter a custom xPath expression. I can’t fix the missing functions by building a workaround if I don’t know what the xPath will be. Are xPath functions not supported? They are part of the xPath 1.0 spec. (https://www.w3.org/TR/1999/REC-xpath-19991116/)