outputDocument
Output the XML Document representing given AST node to given writer.
This method creates a XMLStreamWriter that writes to given writer and delegates execution to outputDocument
Provided writer is NOT closed at the end of execution of this method.
Parameters
AST node to be converted to XML
Tag name of root element of document
Target to get the document writen to
Throws
When any error on outputting XML occours
Output the XML Document representing an AST node to given XMLStreamWriter.
This method outputs the starting of XML document, then delegates to for writing the root element of XML document, and finally outputs the ending of XML document.
This method is used when the root element of an XML document corresponds to an AST node. Would an element corresponding to an AST node be written as child of another element, then { } should be used instead. Actually, outputNode is used recursively for outputting nested elements from AST.
Provided xmlWriter is NOT closed at the end of execution of this method.
AST node to be converted to XML Tag name of root element of document Target to get document written to When any error on outputting XML occours