public enum WriteState
Object
ValueType
Enum
WriteState
System.Xml
XML
Specifies the write state of an instance of a class derived from the XmlWriter class.
When a writer is instantiated, the write state is set toStart. While content is written, the write state is set to reflect the type of content being written. When the System.Xml.XmlWriter.Close method is called, the write state is set toClosed. The System.Xml.XmlWriter.WriteEndDocument method resets the write state back toStart, allowing the writer to write a new XML document.
System.Xml Namespace
WriteState Fields
WriteState.Attribute Field
WriteState.Closed Field
WriteState.Content Field
WriteState.Element Field
WriteState.Prolog Field
WriteState.Start Field
WriteState.value__ Field
Attribute = 3;
An attribute value is being written.
System.Xml.WriteState Enum, System.Xml Namespace
Closed = 5;
The System.Xml.XmlWriter.Close method has been called.
System.Xml.WriteState Enum, System.Xml Namespace
Content = 4;
Element content is being written.
System.Xml.WriteState Enum, System.Xml Namespace
Element = 2;
An element start tag is being written.
System.Xml.WriteState Enum, System.Xml Namespace
Prolog = 1;
The XML declaration is being written.
System.Xml.WriteState Enum, System.Xml Namespace
Start = 0;
None of the writing methods have been called.The System.Xml.XmlWriter.WriteEndDocument method resets the write state to this value.
System.Xml.WriteState Enum, System.Xml Namespace
value__;
System.Xml.WriteState Enum, System.Xml Namespace