This topic has not yet been rated - Rate this topic

XmlTextWriter Constructor

Creates an instance of the XmlTextWriter class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method XmlTextWriter(TextWriter) Creates an instance of the XmlTextWriter class using the specified TextWriter.
Public method XmlTextWriter(Stream, Encoding) Creates an instance of the XmlTextWriter class using the specified stream and encoding.
Public method XmlTextWriter(String, Encoding) Creates an instance of the XmlTextWriter class using the specified file.
Top
Note Note

In the .NET Framework version 2.0 release, the recommended practice is to create XmlWriter instances using the 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.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ