JavaScript XMLDocument a String

new XMLSerializer().serializeToString(xmlObject.documentElement);
Plain Pollan