I want to read an xml file from a server sitting on the same network as my computer.
This is its address: http://xxx.net/nnn/blip.xml
I am able to see this when I open this up in a browser.
But this does not work: I keep getting readystate 4 inside transferfailed function:

var request = new XMLHttpRequest();
request.open("GET",urlnm,false);
request.onload = onloadhandler;
request.addEventListener("error", transferFailed, false);
request.send();

function onloadhandler(evt) {
if (request.readyState == 4) {
if (request.status == 0) {
//blah
}
}
}

function transferFailed(evt) {
alert(request.readyState + request.statusText);
}

Thanks for your help!