var xmlHttp;
function createXMLHttpRequest(){
if(window.ActiveXObject){
//alert("window");
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}else if(window.XMLHttpRequest){
//alert("others");
xmlHttp= new XMLHttpRequest();
}
}
function show(){
createXMLHttpRequest();
var url="test.xml";
xmlHttp.open("GET",url);
xmlHttp.onreadystatechange=callback;
xmlHttp.send(null);
}
function callback(){
if(xmlHttp.readyState==4){
//alert(xmlHttp.status);
if(xmlHttp.status==200){
document.getElementById("results").innerHTML=xmlHttp.responseText
//alert(" sever replied "+xmlHttp.responseText);
}
}
}