Name

XmlTextWriter

Synopsis

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 : Inherits XmlWriter
' Public Constructors
   Public Sub New(ByVal w As System.IO.Stream, 
        ByVal encoding As System.Text.Encoding) 
   Public Sub New(ByVal filename As String, 
        ByVal encoding As System.Text.Encoding) 
   Public Sub New( ByVal w As System.IO.TextWriter) 
' Public Instance Properties
   Public ReadOnly Property BaseStream As Stream  
   Public Property Formatting As Formatting  
   Public Property Indentation As Integer  
   Public Property IndentChar As Char  
   Public Property Namespaces As Boolean  
   Public Property QuoteChar As Char  
   Overrides Public ReadOnly Property WriteState As WriteState  
   Overrides Public ReadOnly Property XmlLang As String  
   Overrides Public ReadOnly Property XmlSpace As XmlSpace  
' Public Instance Methods
   Overrides Public Sub Close() 
   Overrides Public Sub Flush() 
   Overrides Public Function LookupPrefix(
        ByVal ns As String) As String  
   Overrides Public Sub WriteBase64 ...

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.