SaveOptions.None : XML Serialize « XML « VB.Net



Imports System
Imports System.IO

Imports System.Xml
Imports System.Xml.XPath

Public Class MainClass

    Public Shared Sub Main()
        Dim doc As XDocument = _ 
            <?xml version="1.0" encoding="utf-8"?>

        doc.Save("Root2.xml", SaveOptions.None)
    End Sub
End Class


Related examples in the same category

1.XmlSerializer DemoXmlSerializer Demo
2.Serialize Class to XML Document
3.Serializes an object using an XmlWriter.
4.Saves the XML document to the specified file.