This method of the XMLOutputStream class writes a new line. If the output style is COMPACT, the method performs no operation.
public void writeNewLine() throws IOException;
IOException if there was an error writing to the output stream.