:: Forum >> Version 2 >>

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.createNSResolverxml.ownerDocument == null ? xml.documentElement xml.ownerDocument.documentElement));

xml.evaluate('//'+xpxmlresolverXPathResult.ORDERED_NODE_ITERATOR_TYPEnull );                
 
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