title: How to retrieve xml data from Javascript
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5415452/how-to-extract-values-from-an-xml-document-using-javascript">how to extract values from an XML document using Javascript</a>  </p>
  </blockquote>
  
  
  
  <p>My demo.xml file contain the following data:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;user&gt;
  &lt;details&gt;
  &lt;name&gt;abc&lt;/name&gt;
  &lt;class&gt;xyz&lt;/class&gt;
  &lt;city&gt;pqr&lt;/city&gt;
  &lt;/details&gt;
  &lt;info&gt;
  &lt;id&gt;123&lt;/id&gt;
  &lt;code&gt;456&lt;/code&gt;
  &lt;/info&gt;
  &lt;/user&gt;
  </code></pre>
  
  <p>I want to fetch all these data from file demo.xml into my code using Javascript. How can I get this? Any solution? Thanks....</p>