ps... this may not work in IE!
<div><span class="gmail_quote">On 5/16/07, <b class="gmail_sendername">Ⓙⓐⓚⓔ</b> <<a href="mailto:jakecigar@gmail.com">
jakecigar@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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!
<font style="font-weight: bold; font-family: courier new,monospace;" size="4">
beforeSend : function(req){req.overrideMimeType('text/xml')},
</font><font size="4"><span style="font-weight: bold; font-family: courier new,monospace;">dataType: "xml",</span></font>
<font size="4">
<span style="font-weight: bold; font-family: courier new,monospace;"><br style="font-weight: bold; font-family: courier new,monospace;"></span></font>
inside the $,ajax call.<div><span class="e" id="q_11295a8357ab5c50_1">
<div><span class="gmail_quote">On 5/16/07,
<b class="gmail_sendername">tcollogne</b> <<a href="mailto:tcollogne@hotmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
tcollogne@hotmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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: <a href="http://www.nabble.com/Convert-xml-string-to-dom-document-tf3763257s15494.html#a10637769" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.nabble.com/Convert-xml-string-to-dom-document-tf3763257s15494.html#a10637769</a>
Sent from the JQuery mailing list archive at <a href="http://Nabble.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Nabble.com</a>.
</blockquote></div>
<br clear="all">
</span>
</div><span class="sg">--
Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
</span></blockquote></div>
<br clear="all">
--
Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ