var xmlDoc;
if (window.XMLHttpRequest) {
xmlhttp = new XMLHttpRequest();
}
else {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET", "abc.xml", false);
xmlhttp.send();
xmlDoc = xmlhttp.responseXML;
flag = xmlDoc.getElementsByTagName("flag");
name = xmlDoc.getElementsByTagName("name");
descp = xmlDoc.getElementsByTagName("descp");
rating = xmlDoc.getElementsByTagName("rating");
link= xmlDoc.getElementsByTagName("link");
-=-=-=-=-=-=--=--=-=-=-=-=-=-=--=--=-=-=-=-=-=-=--=--=
then you have an array by using that array you can display xml content in html page