Proper XPath execution
Status: Inactive
Brought to you by:
dglazkov
I had a problem using more complex xPath queries with
this script e.g using the ancestor axis, so I had a
look on the net, and found this:
http://www.15seconds.com/Issue/010409.htm
It says about half way through that MSXML defaults to
XSL pattern matching in selectNodes rather than xPath,
I've fixed my copy by changing the "activateDom"
function as follows:
function activateDom(helper)
{
if (!helper.dom)
{
var dom = new ActiveXObject("Msxml2.DOMDocument");
dom.setProperty("SelectionLanguage", "XPath");
...