[jQuery] Problems with Content-Type header set to text/xml

[jQuery] Problems with Content-Type header set to text/xml


I am using PHP as server side language and I am sending Ajax request
to that page and if I set
header("Content-Type: text/xml");
Then, in jQuery, I am not able to parse the response object even
though I use dataType: "xml".
If I remove the header, then it is working in Ajax( I am able to use
the response in jQuery). But if I remove that header function, then
browser is displaying that XML as a text file(When accessed using
normal HTTP protocol, not Ajax).