XPath Error: Functions not supported

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION 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.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 6 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
datacore.glenn
Posts: 30
Last visit: Fri Jan 11, 2019 1:31 pm

XPath Error: Functions not supported

Post 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
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: XPath Error: Functions not supported

Post 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.
David
SAPIEN Technologies, Inc.
This topic is 6 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.