vscode-xml
vscode-xml copied to clipboard
XPath parse error when using xs:dateTime
Description
I am trying to use XPath with xs:dateTime but I am getting a parse Error: Something went wrong while evaluating the XPath: Error: Invalid expression: Error: XPath parse error
Using feature: XML Tools: Evaluate XPath through command pallete
XML element (full XML bellow):
<logEntry id="1" timestamp="2023-09-09T12:01:00Z" level="info" sys:module="Auth"> <message>User logged in</message> <user id="101">JohnDoe</user> </logEntry>
XPath:
//logEntry[xs:dateTime(@timestamp) gt xs:dateTime("2023-09-09T12:42:00Z")]
XML file: syslog (1).xml.zip
Screenshots
Extension Version v2.5.1
VS Code Version Version: 1.84.0-insider (Universal)
Operating System macOs 13.5.2 (22G91)