3.2.0

Problem with Xpath Evaluate in IE

Hi alex, how u doing?
In Firefox, i use the follow command to return nodes with xpath xpression:

var xp = '//data//....//';
var resolver = xml.createNSResolver( xml.ownerDocument == null ? xml.documentElement : xml.ownerDocument.documentElement));

xml.evaluate('//'+xp, xml, resolver, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null );


In IE i got the message: 'createNSResolver undefined' and also undefined for xml.evalueate, i did a search in google but can't find anything about xpath evaluate in IE, can u help me?

tkz a lot.
Paulo Cesar Silva Reis (PC from Brazil).
July 17,
IE (MSXML) implements different methods -

node.selectNodes(xpath); // returns collection of nodes
node.selectSingleNode(xpath); //returns the first node
Alex (ActiveWidgets)
July 17,
tkz alex :-)
Paulo Cesar Silva Reis (PC from Brazil).
July 17,

This topic is archived.

See also:


Back to support forum