Well Microsoft.XMLDOM, this is an outdated programming identifier, and you get the old version of MSXML, which does not support XPath 1.0 by default, and the old, never standardized version. Nowadays, MSXML 6 is part of any OS or OS with the latest service pack that Microsoft supports, so just consider using an MSXML 6 DOM document, for example,
var xml ='<?xml version="1.0"?><book><author select="tests">blah</author></book>';
var doc = new ActiveXObject("Msxml2.DOMDocument.6.0");
doc.loadXML(xml);
node = doc.selectSingleNode("//author[@select = concat('tes','ts')]");
if(node == null)
{
alert("Node is null");
}
else
{
alert("Node is NOT null");
}
Microsoft.XMLDOM, doc.setProperty("SelectionLanguage", "XPath") selectSingleNode selectNodes, XPath 1.0.