klyn.io.xml.dom.XMLSerializer.serialize
method

    public static serialize(node as Node, prettyPrint as Boolean = true, indent as Int = 4) as String:

Description

Serializes a DOM node to XML text.

Parameters

- node Source DOM node.
- prettyPrint Enables multi-line output.
- indent Number of spaces per indentation level.

Returns

XML text.

Example

    xml = XMLSerializer.serialize(document, true, 2)