Since you're setting Content-type
, you need to also set it to use UTF-8
. And I think it's supposed to be application/xml
(source).
xmlhttp.setRequestHeader("Content-Type", "application/xml; charset=utf-8");
Otherwise, have you verified that the XML is properly formatted? Try saving it as a complete XML file and open it in your browser.