Javascript: I have the DOM representation of a node (element or document) and I\'m looking for the string representation of it. E.g.,
var el = document.creat
Try
new XMLSerializer().serializeToString(element);