document.getElementById('txtMenuInfo').innerHTML=txt;
and <div id="textMenuInfo"></div>
are not the same element, change one or the other
t="<td>"</td>";
should not contain the middle "t="<td></td>";
var text,x,xx,i;
should be var txt,x,xx,i;
andtxt=text+ "</tr>";
should be txt=txt+ "</tr>";
for(i=o;i<x.length;i++)
should be a 0 so for(i=0;i<x.length;i++)
x=xmlhttp.responseXML.documentElement.getElementsbyTagName("food");
should have a capital B in getElementsByTagNamex=xmlhttp.responseXML.documentElement.getElementsByTagName("food");
xmlhttp.open("GET",url,true);
and xmlhttp.send();
both need to be placed outside of the function xmlhttp.onreadystatechange=function()
so
xmlhttp.onreadystatechange=function(){
//bla
}
//xmlhttp.open("GET",url,true);
//xmlhttp.send();
If it's still not working then make sure you're running it from a server (localhost).