Method Reset
Reset()
Reset the writer.
This method is especially useful if the writer throws an exception before it is finished, and you want to reuse the writer for a new document. It is usually a good idea to invoke Flush() before resetting the writer, to make sure that no output is lost.
This method is invoked automatically by the StartDocument() method before writing a new document.
Note: this method will not clear the prefix or URI information in the writer or the selected output writer.
Declaration
public virtual void Reset()