XPath Error: Functions not supported

Support for all customers who have purchased a PrimalXML product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
User avatar
datacore.glenn
Posts: 29
Joined: Mon Apr 09, 2012 1:45 am

XPath Error: Functions not supported

Post by datacore.glenn » Thu Sep 07, 2017 2:44 pm

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

User avatar
davidc
Posts: 4903
Joined: Thu Aug 18, 2011 4:56 am

Re: XPath Error: Functions not supported

Post by davidc » Thu Sep 07, 2017 3:33 pm

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.
David
SAPIEN Technologies, Inc.