System.Xml.WriteState Enum

public enum WriteState

Base Types

Object
  ValueType
    Enum
      WriteState

Assembly

System.Xml

Library

XML

Summary

Specifies the write state of an instance of a class derived from the XmlWriter class.

Description

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 System.Xml.XmlWriter.Close method is called, the write state is set to Closed . The System.Xml.XmlWriter.WriteEndDocument method resets the write state back to Start , allowing the writer to write a new XML document.

See Also

System.Xml Namespace

Members

WriteState Fields

WriteState.Attribute Field
WriteState.Closed Field
WriteState.Content Field
WriteState.Element Field
WriteState.Prolog Field
WriteState.Start Field
WriteState.value__ Field


WriteState.Attribute Field

Attribute = 3;

Summary

An attribute value is being written.

See Also

System.Xml.WriteState Enum, System.Xml Namespace

WriteState.Closed Field

Closed = 5;

Summary

The System.Xml.XmlWriter.Close method has been called.

See Also

System.Xml.WriteState Enum, System.Xml Namespace

WriteState.Content Field

Content = 4;

Summary

Element content is being written.

See Also

System.Xml.WriteState Enum, System.Xml Namespace

WriteState.Element Field

Element = 2;

Summary

An element start tag is being written.

See Also

System.Xml.WriteState Enum, System.Xml Namespace

WriteState.Prolog Field

Prolog = 1;

Summary

The XML declaration is being written.

See Also

System.Xml.WriteState Enum, System.Xml Namespace

WriteState.Start Field

Start = 0;

Summary

None of the writing methods have been called.

The System.Xml.XmlWriter.WriteEndDocument method resets the write state to this value.

See Also

System.Xml.WriteState Enum, System.Xml Namespace

WriteState.value__ Field

value__;

See Also

System.Xml.WriteState Enum, System.Xml Namespace