var xmlDoc;
if (window.XMLHttpRequest)
  {
  xhttp=new XMLHttpRequest();
  }
else // Internet Explorer 5/6
  {
  xhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xhttp.open("GET","../news.xml",false);
xhttp.send("");
xmlDoc=xhttp.responseXML;

var x=xmlDoc.getElementsByTagName("ARTICLE");
i=0;

function display()
{
title=(x[i].getElementsByTagName("TITLE")[0].childNodes[0].nodeValue);
date=(x[i].getElementsByTagName("DATE")[0].childNodes[0].nodeValue);
snippet=(x[i].getElementsByTagName("SNIPPET")[0].childNodes[0].nodeValue);
txt="" + title + "<br />Date: " + date + "<br />"+ snippet;
document.getElementById("show").innerHTML=txt;
}
