XML.stringify()
Description
Writes document into text.
This method returns a string for the formatted text. When only the binary data is needed, use XML.encode() instead, which can be more efficient without the need of an extra string conversion.
Syntax
XML.stringify(node)
Parameters
stringify(rootNode, space?)
rootNodespace?
A XML.Node object representing the root document node.
Number of spaces for indentation while formatting.
Return Value
A string containing the text of the XML document after formatting.