/ Published in: JavaScript
Convierte de objeto xml a string
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function xmlToString(xmlObj) { if (navigator.appName == "Netscape") { return (new XMLSerializer()).serializeToString(xmlObj); } if (navigator.appName == "Microsoft Internet Explorer") { return xmlObj.xml; } }