if the files is xhtml (or xml of some type) and it's being served as text/html, the browser won't give you a dom.
UNLESS you override the mime-type! beforeSend : function(req){req.overrideMimeType('text/xml')}, dataType: "xml", inside the $,ajax call. On 5/16/07, tcollogne <[EMAIL PROTECTED]> wrote:
Hello, I have a static html page containing xml code. Problem is that when I do an ajax request to get the content, it is always returned as a text/html I would like to parse the return string as a dom document. It is impossible for us to change the extension, so I was wondering if there is a possibility to convert the return string to a dom document. I use sarissa now for this, but It would be much better if jquery had somthing like this. Can somebody help me please? -- View this message in context: http://www.nabble.com/Convert-xml-string-to-dom-document-tf3763257s15494.html#a10637769 Sent from the JQuery mailing list archive at Nabble.com.
-- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ