Try this, //IE if (window.ActiveXObject) { var string = xmlData.xml; } // code for Mozilla, Firefox, Opera, etc. else { var string = (new XMLSerializer()).serializeToString(xmlData); }
On 19 Дек, 18:02, Stefan <[EMAIL PROTECTED]> wrote: > Hello, > > I have some data in XML representation that I will need to convert to > a string. I tried using XMLSerializer - works great in Firefox, but > not in IE: > > var xmlString = (new XMLSerializer()).serializeToString(xmlData); > > Is there any way to convert XML to its string representation with > jQuery? Or other ways to accomplish this task? > > Thank you! > > Steffen