What are the differences between an HTML http request and an XML http request. I get an access denied error for this
xmlhttp.open("GET","cd_catalog.xml",false);
The xml file is in the same directory as the html file where that request is made.
There is no difference in how XMLHttpRequest deals with XML vs HTML vs any other content-type of request.
If your server is not serving the XML at all you will see access denied.
If your server is redirecting *.xml requests to a different virtual domain or protocol, then you will see access denied because the redirect is cross-origin.
If your XML contains an external entity reference that is cross-domain, then that might cause problems as well.
curlthe XML but get a 200 when youcurlthe HTML?