locked
Does Windows.Data.Xml.Dom.XmlDocument support XPath 2.0 xs:date() function? RRS feed

  • Question

  • I cannot get it to work to accept xs:date() in a query. It throws 

    0x80004005 - JavaScript runtime error: Unknown method.

    //CatalogItem[@code='101'and -->xs:date('2011-09-22T00:00:00.000Z')<-- ge xs:date(@validFrom) and xs:date('2011-09-22T00:00:00.000Z') le xs:date(@validTo)]

    I am using selectSingleNodeNS("...", 'xmlns:xs="http://www.w3.org/2001/XMLSchema"')

    Friday, March 7, 2014 12:20 AM

Answers

  • To answer myself. To this date MSXML does not understand XPath 2.0 :(

    Would have thought new WinRT is a little more up to date, than 10 years behind.


    • Edited by phil_ke Monday, June 16, 2014 1:07 PM
    • Marked as answer by phil_ke Monday, June 16, 2014 1:07 PM
    Monday, June 16, 2014 1:07 PM

All replies

  • Hi,

    Try to use xs:dateTime instead of xs:date.

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Friday, March 7, 2014 9:05 AM
  • Same result, Anne :(
    Friday, March 7, 2014 9:46 AM
  • Any other ideas? Can you please check back with the product team and ask them what XPath support they offer in the Xml WinRT classes. I refuse to believe its still 1.0
    • Edited by phil_ke Thursday, March 27, 2014 10:48 PM
    Thursday, March 27, 2014 10:47 PM
  • To answer myself. To this date MSXML does not understand XPath 2.0 :(

    Would have thought new WinRT is a little more up to date, than 10 years behind.


    • Edited by phil_ke Monday, June 16, 2014 1:07 PM
    • Marked as answer by phil_ke Monday, June 16, 2014 1:07 PM
    Monday, June 16, 2014 1:07 PM