function XMLToString(oXML) {
//code for IE
if (window.ActiveXObject) {
var oString = oXML.xml;
return oString;
}
// code for Chrome, Safari, Firefox, Opera, etc.
else {
return (new XMLSerializer()).serializeToString(oXML);
}
}


출처 : http://www.dotnet-tricks.com/Tutorial/javascript/Y7Q9130612-Convert-string-to-xml-and-xml-to-string-using-javascript.html

반응형
Posted by 힘없는염소