XmlTextWriter.Flush : XmlTextWriter « XML « VB.Net

Home
VB.Net
1.2D
2.Application
3.Class
4.Data Structure
5.Data Types
6.Database ADO.net
7.Date Time
8.Development
9.Event
10.File Directory
11.Generics
12.GUI
13.Internationalization I18N
14.Language Basics
15.LINQ
16.Network Remote
17.Reflection
18.Security
19.Thread
20.Windows Presentation Foundation
21.Windows System
22.XML
23.XML LINQ
VB.Net Tutorial
VB.Net by API
VB.Net » XML » XmlTextWriterScreenshots 
XmlTextWriter.Flush
 

Imports System
Imports System.IO
Imports System.Xml

public class Sample

  public shared sub Main()

     Dim writer as XmlTextWriter = new XmlTextWriter (Console.Out)
     writer.Formatting = Formatting.Indented
  
     writer.WriteStartElement("book")
     writer.WriteElementString("title""C#")
     writer.WriteEndElement()
     writer.Flush()

     writer.WriteStartElement("cd")
     writer.WriteElementString("title""XML")
     writer.WriteEndElement()
     writer.Flush()  

     writer.Close()

  end sub
end class

   
  
Related examples in the same category
1.XmlTextWriter.Close closes this stream and the underlying stream.
2.XmlTextWriter.Formatting Property indicates how the output is formatted.
3.XmlTextWriter.Indentation
4.XmlTextWriter.WriteCData writes out a block
5.XmlTextWriter.WriteCharEntity Method forces the generation of a character entity for the specified Unicode character value.
6.XmlTextWriter.WriteEndElement closes one element and pops the corresponding namespace scope.
7.XmlTextWriter.WriteFullEndElement closes one element and pops the corresponding namespace scope.
8.XmlTextWriter.WriteQualifiedName Method writes out the namespace-qualified name
9.XmlTextWriter.WriteRaw Method writes raw markup manually from a string.
10.XmlTextWriter.WriteWhitespace writes out the given white space.
11.Verifies name according to the W3C Extended Markup Language recommendation.
w___w_w___.___ja___v___a___2_s_.__com___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.