I have an XML object (loaded using XMLHTTPRequest
's responseXML
). I have modified the object (using jQuery) and would like to store it as text in a string.
There is apparently a simple way to do it in Firefox et al:
var xmlString = new XMLSerializer().serializeToString( doc );
(from rosettacode )
But how does one do it in IE6 and other browsers (without, of course, breaking Firefox)?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…