Serializes an XML document, whose root is given.
Serializes an XML document, whose root is given.
Outputs the XML declaration if this XMLSerializer was created with outputDeclaration = true.
Uses the character encoding of this XMLSerializer (default is UTF-8).
Serializes an XML document, whose root is given.
Serializes an XML document, whose root is given.
Outputs the XML declaration if this XMLSerializer was created with outputDeclaration = true.
Note: it is up to the caller of this function to ensure that the character encoding used by the Writer (if any) matches the encoding of this XMLSerializer