I have a XML file saved in my local machine and I want to read it through javascript. The following is my local xml path D:\user\xml\test1.xml.
<script>
  if (window.XMLHttpRequest)
   {
      xmlhttp=new XMLHttpRequest();
   }
  else
  {
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 xmlhttp.open("GET","file///D:/user/xml/test1.xml",true);
 xmlhttp.send();
 xmlDoc=xmlhttp.responseXML;
 alert(xmlDoc);
 </script>
I find no response in alert. I am a newbie to XML and learning to code now. Is my system path specification correct? How to check whether my request opens the xml file and reads the input?
 
    