Creates a new XmlWriter instance using the specified filename.
Imports System
Imports System.IO
Imports System.Xml
Imports System.Text
Imports Microsoft.VisualBasic
Public Class Sample
Public Shared Sub Main()
Using writer As XmlWriter = XmlWriter.Create("output.xml")
writer.WriteStartElement("book")
writer.WriteElementString("price", "9.9")
writer.WriteEndElement()
writer.Flush()
End Using
End Sub
End Class