Constructs and initializes a new instance of the System.Xml.XmlTextWriter class.
- writer
- The System.IO.TextWriter to write to, initialized to the correct encoding.
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.
XmlTextWriter.WriteState to WriteState.Start.
Note:If a specific encoding is necessary, set the encoding using the constructor of w before instantiating the writer.
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0