title: How to read XML file using FileReader javascript?
body: <p>I need to get XML from a ODF file. I tried using FileReader readAsText and readAsBinaryString but its not working. </p>
  
  <p><strong>FileReader readAsText</strong> returns some special characters for odf files.</p>
  
  <p>with <strong>readAsBinaryString</strong></p>
  
  <pre><code>var reader = new FileReader()
  
  reader.onloadend=function(e){
  
      var data = e.target.result;
      //data is not in xml format
      var xml = str2xml(data);
      //getting error
      /*
       using DOM parser for xml parsing
      */
  }
  
  reader.readAsBinaryString(file);
  </code></pre>
  
  <p>How can get XML from ODF file using javascript FileReader? </p>