Re: XMLHttpRequest on Safari
You have a typo - it should be "responseText" not "responsetext", plus you need to test that there is a response and it's "OK" before you try doing anything with it:
Code:
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState===4 && xmlhttp.status===200)
{
alert( xmlhttp.responseText );
document.write(xmlhttp.responseText);
}
}
A simple way to view XML code is using XSLT. W3Schools - as always - have a great tutorial on these: http://www.w3schools.com/xsl/default.asp