Creating an XMLPrintStream Object

Figure 1. XMLPrintStream Constructor
XMLPrintStream(String host, int port)
XMLPrintStream(final XMLServerEndPoint[] endpoints)
XMLPrintStream()

An XMLPrintStream object can be instantiated by providing the name of the host on which the XML Server resides and the port on which the XML Server is listening. However, as documented in the Java documentation, these properties are not used and it is recommended to use the empty constructor.