SAX Writer Reference > SAX Writer API Methods > setOutputToFile
  
setOutputToFile
This method sets the output type of the XML document to be a file. The following table lists parameters of setOutputToFile.
 
Parameter Name
Type
Description
I/O
Req
pcFileName
Character
Name of the file to write the XML to.
I
Yes