public static serialize(node as Node, prettyPrint as Boolean = true, indent as Int = 4) as String:
Serializes a DOM node to XML text.
XML text.
xml = XMLSerializer.serialize(document, true, 2)