Closing an XMLPrintStream Object

Figure 1. Closing an XMLPrintStream
close();

Closing an XMLPrintStream object causes the print job to be started. Before closing the object, a well-formed XML document must have been written to it. The close method takes no parameters.