public void endDocument() throws IOException {
  _writer.flush();
}

public void endDocument ( ) throws IOException { _writer . flush ( ) ; }
finishes writing and flushes the outputstream or writer that this xmlwriter is writing to .
