output

open fun output(node: Node): String(source)

Generate a xml string for given AST Node. Tag name of root element in the result document will be "root".

Return

XML document corresponding to node

Parameters

node

AST node to be converted to XML


open fun output(node: Node, name: String, level: Int, builder: StringBuilder)(source)

Deprecated

Output XML data from an AST node to a String Builder. This method is kept for backward compatilibity only and should be removed in future releases.

Parameters

node

AST node to be converted to XML

name

Tag name of root element in the resulting document

level

Nesting level of node in tree. Not used.

builder

Target object to receive the generated XML