This documentation is archived and is not being maintained.

XmlTextWriter Constructor

Creates an instance of the XmlTextWriter class.

Note Note

In the Microsoft .NET Framework version 2.0 release, the recommended practice is to create XmlWriter instances using the System.Xml.XmlWriter.Create method and the XmlWriterSettings class. This allows you to take full advantage of all the new features introduced in this release. For more information, see Creating XML Writers.

Name Description
XmlTextWriter (TextWriter) Creates an instance of the XmlTextWriter class using the specified TextWriter.

Supported by the .NET Compact Framework.

XmlTextWriter (Stream, Encoding) Creates an instance of the XmlTextWriter class using the specified stream and encoding.

Supported by the .NET Compact Framework.

XmlTextWriter (String, Encoding) Creates an instance of the XmlTextWriter class using the specified file.

Supported by the .NET Compact Framework.

Show: