Constructs and initializes a new instance of the System.Xml.XmlTextWriter class using the specified output stream.
- stream
- Documentation for this section has not yet been entered.
- encoding
- The System.Text.Encoding to generate, or null.
- encoding
- Documentation for this section has not yet been entered.
Type Reason ArgumentException w cannot be written to.
-or-
The encoding is not supported.
ArgumentNullException w is null.
If encoding is null, the stream is written as UTF-8 and the encoding attribute is omitted from the processing instruction.
The following properties are initialized to the specified values:
XmlTextWriter.Formatting to Formatting.None.
XmlTextWriter.Indentation to 2.
XmlTextWriter.IndentChar to the space character.
XmlTextWriter.Namespaces to true.
XmlTextWriter.QuoteChar to the double quote character.
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0