:: Forum >>

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).
Monday, July 17, 2006
IE (MSXML) implements different methods -

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

This topic is archived.


Back to support forum

Forum search