stringWriterOutput

Create a string writer filled with XML document representing an AST node.

Returned stringWriter is not closed upon return because doing so has no effect. So users of this method are not required to close it.

Return

Stringwriter filled with XML document

Parameters

node

AST node to be converted to XML

name

Tag name of root element in the resulting document

Throws

Unchecked exception wrapping checked XMLStreamException, when any error on producing XML output occours