Making AJAX Treat Text as XML
JavaScript can be really picky about what it accepts as “XML”, and in most AJAX uses it requires that the server send it something with the correct MIME type. This can get really annoying if you’re trying to deal with local XML from your filesystem, because the browser will treat it as text, and the AJAX functions will error out. So, I finally decided I’d had enough, started looking into using the DOMParser, discovered it didn’t exist in IE, and then found a post about a DOMParser for IE and Safari.
[more...]