Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Newbie to XML - problem using xmlhttp >Thread Next - Re: Newbie to XML - problem using xmlhttp Re: Newbie to XML - problem using xmlhttpTo: NULL Date: 6/4/2007 5:37:00 PM Tim Platt wrote: >>> var response = xmlhttp.responseXML.documentElement; >> For responseXML to be populated the response the server sends should >> have Content-Type application/xml or text/xml but that server does not >> send that header value so responseXML is not being populated. >> > Sorry for asking a stupid question, but does this mean I cannot use > responseXML, in this specific case? If you can change the server program to set the HTTP response header Content-Type: application/xml or Content-Type: text/xml then you can use responseXML. With IE if responseXML has not been populated that you might be able to use xmlhttp.responseXML.load(xmlhttp.responseBody) With Mozilla and with Opera but not with IE you can even use responseXML by calling the overrideMimeType method: <http://developer.mozilla.org/en/docs/XMLHttpRequest#overrideMimeType.28.29> -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
