Share via


XmlWriter Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents a writer that provides a fast, non-cached, forward-only means of generating streams or files containing XML data.

Inheritance Hierarchy

System. . :: . .Object
  System.Ext.Xml..::..XmlWriter
    System.Ext.Xml. . :: . .XmlMemoryWriter

Namespace:  System.Ext.Xml
Assembly:  MFDpwsExtensions (in MFDpwsExtensions.dll)

Syntax

'Declaration
Public Class XmlWriter _
    Implements IDisposable
public class XmlWriter : IDisposable
public ref class XmlWriter : IDisposable
type XmlWriter =  
    class
        interface IDisposable
    end
public class XmlWriter implements IDisposable

The XmlWriter type exposes the following members.

Constructors

  Name Description
Protected method XmlWriter() () () () Initializes a new instance of the XmlWriter class.
Protected method XmlWriter(Stream) Initializes a new instance of the XmlWriter class with the specified stream.

Top

Properties

  Name Description
Public property XmlLang When overridden in a derived class, gets the current xml:lang scope.

Top

Methods

  Name Description
Public method Close When overridden in a derived class, closes this stream and the underlying stream.
Public methodStatic member Create Creates a new XmlWriter instance using the specified stream.
Public method Dispose() () () () Releases all resources used by the XmlWriter object.
Protected method Dispose(Boolean) Releases all resources used by the XmlWriter object and optionally releases the managed resources.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize (Overrides Object. . :: . .Finalize() () () ().)
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 Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (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.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method WriteAttributeString(String, String) When overridden in a derived class, writes out the attribute with the specified local name and value.
Public method WriteAttributeString(String, String, String) When overridden in a derived class, writes an attribute with the specified local name, namespace URI, and value.
Public method WriteAttributeString(String, String, String, String) When overridden in a derived class, writes out the attribute with the specified prefix, local name, namespace URI, and 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(String, String) When overridden in a derived class, writes an element with the specified local name and value.
Public method WriteElementString(String, String, String) When overridden in a derived class, writes an element with the specified local name, namespace URI, and value.
Public method WriteElementString(String, String, String, String) Writes an element with the specified prefix, local name, namespace URI, and 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(String) When overridden in a derived class, writes raw markup manually from a string.
Public method WriteRaw(array<Char> [] () [] [], Int32, Int32) When overridden in a derived class, writes raw markup manually from a character buffer.
Public method WriteStartAttribute(String) Writes the start of an attribute with the specified local name.
Public method WriteStartAttribute(String, String) Writes the start of an attribute with the specified local name and namespace URI.
Public method WriteStartAttribute(String, String, String) When overridden in a derived class, writes the start of an attribute with the specified prefix, local name, and namespace URI.
Public method WriteStartElement(String) When overridden in a derived class, writes out a start tag with the specified local name.
Public method WriteStartElement(String, String) When overridden in a derived class, writes the specified start tag and associates it with the given namespace.
Public method WriteStartElement(String, String, String) When overridden in a derived class, writes the specified start tag and associates it with the given namespace and prefix.
Public method WriteString When overridden in a derived class, writes the given text content.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Ext.Xml Namespace