Downloaded file from Firefox but it is not opening in the internet explorer

1. I have java script file where it will download the content to a xml file . Below is the java script code

  // "data:application/octet-stream," + encodeURIComponent(content);
   var dataURL = "data:application/octet-stream," + encodeURIComponent(textToEncode);
       window.location.assign(dataURL); // To change the current page
2. when we are trying to open downloaded xml file in internet explorer  through the javascript it is throwing Type Error : Access denied .    But, when we open the xml in notepad++ and re- save it is able to open in internet explorer. 
   below is java script code to open the xml file - 
if (window.ActiveXObject) {
           xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
           xmlDoc.async = false;
           xmlDoc.load(fname);  // fname refers to the file path where we downloaded
           return (xmlDoc);

i am not able to resolve the problem .can you please help me on this . Thanks in Advance

↓ Show more ↑ Show less
  • All posts
  • Helpful Solutions
  • post
  • owner
  • solution
  • owner
  • owner