Possible Duplicate:
how to extract values from an XML document using Javascript
My demo.xml file contain the following data:
<?xml version="1.0"?>
<user>
<details>
<name>abc</name>
<class>xyz</class>
<city>pqr</city>
</details>
<info>
<id>123</id>
<code>456</code>
</info>
</user>
I want to fetch all these data from file demo.xml into my code using Javascript. How can I get this? Any solution? Thanks....