title: How to read local xml file using javascript?
body: <p>Maybe the problem is that i wrote path to my file incorrectly, i'm using Linux, do i have to write path in some different way?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    function func(){
      var xmlFile = new XMLHttpRequest();
      xmlFile.open("GET", "/home/kat/course/data.xml", false);
      xmlFile.send();
      xmlDoc = xmlFile.responseXML;
  
      document.getElementById("result_field").value = xmlDoc;
    }
  &lt;/script&gt;
  </code></pre>