Cannot parse XML generated by JSP I am generating an XML using JSP, when i run the JSP in IE it shows the XML as per DOM, but when i try to parse it using Javascript , the command xmldoc.documentElement returns null instead of the root node. How should i Parse this XML ?

Roseanne Zhang

This is working code I am using, it might help you.

  if (!isIE)
    xmldoc = req.responseXML;
  else {
    //IE does not take the responseXML as a dom document!!!!
    xmldoc = new ActiveXObject("Microsoft.XMLDOM");