Page 1 of 1

XPath Error: Functions not supported

Posted: Thu Sep 07, 2017 2:44 pm
by datacore.glenn
PrimalXML Version 4.3.46
Windows 10 Pro, 64-bit

Hello Support,

If a query expression which uses parentheses is entered into the Simple XPath Search textbox, e.g. //item[not(@allocated) or @allocated='False'] , then an error is returned: "XPath Error: Functions not supported".

Using the same query expression as an argument to the SelectNodes method of the System.Xml.XmlDocument class within a PowerShell script returns the expected nodelist (i.e. all <item> nodes which have either no atttribute named 'allocated', or where that attribute's value is set to 'False')

Is this expected behaviour for this version of PrimalXML?

Regards,
Glenn

Re: XPath Error: Functions not supported

Posted: Thu Sep 07, 2017 3:33 pm
by davidc
The Simple XPath search panel doesn't support all the constructs of XPath found in the XmlDocument. Hopefully in a future release we can add support for this.