DotJoshJohnson / vscode-xml

XML Tools for Visual Studio Code
MIT License
324 stars 86 forks source link

XPath parse error when using xs:dateTime #388

Open fifkapetr opened 11 months ago

fifkapetr commented 11 months ago

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): `

User logged in
    <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 image

Extension Version v2.5.1

VS Code Version Version: 1.84.0-insider (Universal)

Operating System macOs 13.5.2 (22G91)