XmlWriter Members

The following tables list the members exposed by the XmlWriter type.

Public Constructors

Name Description
Public Method XmlWriter Overloaded. Initializes a new instance of the XmlWriter class.

Public Properties

Name Description
Public Property Settings Gets the XmlWriterSettings object used to create this XmlWriter instance.
Public Property WriteState When overridden in a derived class, gets the state of the writer.
Public Property XmlLang When overridden in a derived class, gets the current xml:lang scope.
Public Property XmlSpace When overridden in a derived class, gets an XmlSpace representing the current xml:space scope.

Public Methods

Name Description
Public Method Close When overridden in a derived class, closes this Stream and the underlying stream.
Public Method Static Create Overloaded. Creates a new XmlWriter instance.
Public Method Dispose Overloaded. Releases all resources used by the TextReader object.
Public Method Equals (Inherited from Object.)
Public Method Flush When overridden in a derived class, flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method LookupPrefix When overridden in a derived class, returns the closest prefix defined in the current namespace scope for the namespace URI.
Public Method ReferenceEquals (Inherited from Object.)
Public Method ToString (Inherited from Object.)
Public Method WriteAttributeString Overloaded. When overridden in a derived class, writes an attribute with the specified value.
Public Method WriteBase64 When overridden in a derived class, encodes the specified binary bytes as Base64 and writes out the resulting text.
Public Method WriteChars When overridden in a derived class, writes text one buffer at a time.
Public Method WriteComment When overridden in a derived class, writes out a comment containing the specified text.
Public Method WriteElementString Overloaded. When overridden in a derived class, writes an element containing a string value.
Public Method WriteEndAttribute When overridden in a derived class, closes the previous WriteStartAttribute method.
Public Method WriteEndElement When overridden in a derived class, closes one element and pops the corresponding namespace scope.
Public Method WriteProcessingInstruction When overridden in a derived class, writes out a processing instruction with a space between the name and text as follows.
Public Method WriteRaw Overloaded. When overridden in a derived class, writes raw markup manually.
Public Method WriteStartAttribute Overloaded. When overridden in a derived class, writes the start of an attribute.
Public Method WriteStartElement Overloaded. When overridden in a derived class, writes the specified start tag.
Public Method WriteString When overridden in a derived class, writes the given text content.

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

XmlWriter Class
System.Ext.Xml Namespace