locked
reading the xml using dom object in firefox browser RRS feed

  • Question

  • Hi friends,

           i am able to read the XML in IE browser but not able to read in Firefox browser i used below code.

     

    var BlankXml = new ActiveXObject("MSXML2.DOMDocument.3.0");

    function loadXML() {

    try{

    BlankXml.async="false";

    BlankXml.onreadystatechange=verify;

    if (BlankXml) {

    BlankXml.load(file);

    }

    }

    catch(e) {

    //alert(e.message);

    }

    }

    function verify() {

    try {

    if(BlankXml.readyState!=4)

    return false;

    } catch(e) {

    //alert(e.message);

    }

    }

    loadXML();

    var tree=BlankXml.documentElement;


    but this is not working in Firefox please if any one know the solution let me know.

    Regards
    Ravishanker Maduri


    ravishankar
    Friday, October 31, 2008 12:44 PM

Answers