Sunday, 1 March 2015

How to retrieve xml nodes and its values in IE 11 JS



My web application was running fine till IE 10 and Firefox with usual ActiveX Object and XMLHTTP request object . When trying to run it with ie11 i'm getting script error while using evaluate() method with xpath parameter or selectNodes() method ,that i'm pointing to a null reference.



var nodes = xmlresponse.evaluate(".../.../...",,,xpathresult,...); // firefox and ie11

//or

var nodes= xmlresponse.selectNodes(".../.../..."); //for other IE


xmlresponse is the ajax xml response document.


Error: xpathresult undefined!


*How shall i retrieve values as HTML Collection or XPATH Object and use it for IE 11 Browser? *


What alternative does IE 11 support to retrieve node values from xml document?(getting error even while using nodeValue() method).


How to use queryselectorAll() for this issue? (if possible)


No comments:

Post a Comment