This expression works fine in all major browsers, including IE10 :
var xPathResult = xmlDocument.evaluate(path, xmlDoc, null, XPathResult.ANY_TYPE, null);
However, when trying the new Windows 8.1 IE11 it fails, throwing this error:
javaScript runtime error, XPathResult is undefined.
How should JavaScript XPath be coded when developing for IE11?