August 2003
Intermediate to advanced
928 pages
32h 1m
English
XmlTextWriter
This class adds basic formatting
to the text output and is derived
from XmlWriter. The Formatting
property uses its values to indicate if the output is to be
Indented (None is the default).
If Formatting is set to
Formatting.Indented, the value of the
Indentation property is the number of characters
to indent each successive level (or child element) in the output.
IndentChar sets the character to use for
indentation, which must be a valid whitespace character (the default
is space). QuoteChar is the character to use to
quote attributes and is either a single or double quote.
public class XmlTextWriter : XmlWriter { // Public Constructors public XmlTextWriter(System.IO.Streamw, System.Text.Encodingencoding); public XmlTextWriter(stringfilename, System.Text.Encodingencoding); public XmlTextWriter(System.IO.TextWriterw); // Public Instance Properties public Stream BaseStream{get; } public Formatting Formatting{set; get; } public int Indentation{set; get; } public char IndentChar{set; get; } public bool Namespaces{set; get; } public char QuoteChar{set; get; } public override WriteState WriteState{get; } // overrides XmlWriter public override string XmlLang{get; } // overrides XmlWriter public override XmlSpace XmlSpace{get; } // overrides XmlWriter // Public Instance Methods public override void Close( ); // overrides XmlWriter public override void Flush( ); // overrides XmlWriter public override string LookupPrefix(stringns); // overrides XmlWriter ...