hi friend i am used the java script to display the currency of Iraqi dinars from this xml file
http://www.xe.com/datafeed/samples/sample-xml-usd.xml
and i used this code
<script>if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); }else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }xmlhttp.open("GET","http://www.xe.com/datafeed/samples/sample-xml-usd.xml",false);xmlhttp.send();xmlDoc=xmlhttp.responseXML; currency=xmlDoc.getElementsByTagName("crate")[65].childNodes[0].nodeValue;document.write(currency);</script>
but that is not work and i don't know why?
please tell me what is my mistakes ... help me