Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
enum System.​Xml.​WriteState
Assembly: System.Xml.ReaderWriter
Specifies the state of the <see cref="T:System.Xml.XmlWriter" /> .
Values
Start
Indicates that a Write method has not yet been called.
Prolog
Indicates that the prolog is being written.
Element
Indicates that an element start tag is being written.
Attribute
Indicates that an attribute value is being written.
Content
Indicates that element content is being written.
Closed
Indicates that the <see cref="M:System.Xml.XmlWriter.Close" /> method has been called.
Error
An exception has been thrown, which has left the <see cref="T:System.Xml.XmlWriter" /> in an invalid state. You can call the <see cref="M:System.Xml.XmlWriter.Close" /> method to put the <see cref="T:System.Xml.XmlWriter" /> in the <see cref="F:System.Xml.WriteState.Closed" /> state. Any other <see cref="T:System.Xml.XmlWriter" /> method calls results in an <see cref="T:System.InvalidOperationException" /> .