DekGenius.com
[ Team LiB ] Previous Section Next Section

XmlTextWriterSystem.Xml (system.xml.dll) CF 1.0, ECMA 1.0  class 

public class XmlTextWriter : XmlWriter {
// Public Constructors
   public XmlTextWriter( System.IO.Stream w, System.Text.Encoding encoding);  
   public XmlTextWriter( string filename, System.Text.Encoding encoding);  
   public XmlTextWriter( System.IO.TextWriter w);  
// 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( string ns);                   // overrides XmlWriter
   public override void WriteBase64( byte[ ] buffer, int index, int count);    // overrides XmlWriter
   public override void WriteBinHex( byte[ ] buffer, int index, int count);    // overrides XmlWriter
   public override void WriteCData( string text);                     // overrides XmlWriter
   public override void WriteCharEntity( char ch);                    // overrides XmlWriter
   public override void WriteChars( char[ ] buffer, int index, int count);    // overrides XmlWriter
   public override void WriteComment( string text);                   // overrides XmlWriter
   public override void WriteDocType( string name, string pubid, string sysid, string subset);    // overrides XmlWriter
   public override void WriteEndAttribute( );                          // overrides XmlWriter
   public override void WriteEndDocument( );                           // overrides XmlWriter
   public override void WriteEndElement( );                            // overrides XmlWriter
   public override void WriteEntityRef( string name);                 // overrides XmlWriter
   public override void WriteFullEndElement( );                        // overrides XmlWriter
   public override void WriteName( string name);                      // overrides XmlWriter
   public override void WriteNmToken( string name);                   // overrides XmlWriter
   public override void WriteProcessingInstruction( string name, string text);    // overrides XmlWriter
   public override void WriteQualifiedName( string localName, string ns);    // overrides XmlWriter
   public override void WriteRaw( char[ ] buffer, int index, int count);    // overrides XmlWriter
   public override void WriteRaw( string data);                       // overrides XmlWriter
   public override void WriteStartAttribute( string prefix, string localName, string ns);    // overrides XmlWriter
   public override void WriteStartDocument( );                         // overrides XmlWriter
   public override void WriteStartDocument( bool standalone);         // overrides XmlWriter
   public override void WriteStartElement( string prefix, string localName, string ns);    // overrides XmlWriter
   public override void WriteString( string text);                    // overrides XmlWriter
   public override void WriteSurrogateCharEntity( char lowChar, char highChar);    // overrides XmlWriter
   public override void WriteWhitespace( string ws);                  // overrides XmlWriter
}

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.

Hierarchy

System.Object XmlWriter XmlTextWriter

    [ Team LiB ] Previous Section Next Section