if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.open("GET","data/stations_en.xml",false); xmlhttp.send(); xmlDoc=xmlhttp.responseXML; var x = xmlDoc.getElementsByTagName("station"); for(var t = 0;t < x.length; t++) { var locations = [ [x[t].getElementsByTagName("name")[0].childNodes[0].nodeValue], [x[t].getElementsByTagName("lattitude")[0].childNodes[0].nodeValue], [x[t].getElementsByTagName("longitude")[0].childNodes[0].nodeValue] ]; } document.write(locations[0],locations[1],locations[2]);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)