When a writer is instantiated, the write state is set to Start. While content is written, the write state is set to reflect the type of content being written. When the XmlWriter.Close method is called, the write state is set to Closed. The XmlWriter.WriteEndDocument method resets the write state back to Start, allowing the writer to write a new XML document.
Member Name Description Attribute An attribute value is being written. Closed The XmlWriter.Close method has been called. Content Element content is being written. Element An element start tag is being written. Error Documentation for this section has not yet been entered. Prolog The XML declaration is being written. Start None of the writing methods have been called.
The XmlWriter.WriteEndDocument method resets the write state to this value.
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0