SAX Writer Reference > SAX Writer API Methods > writeDocument
  
writeDocument
This method closes the document and triggers the writing of the file to the specified output location. This method has no parameters.