javascript xmldocument to string

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