Option Explicit
Option Strict
Imports System
Imports System.IO
Imports System.Xml
Public Class Sample
Public Shared Sub Main()
Dim doc As New XmlDocument()
doc.LoadXml(" ")
Dim docFrag As XmlDocumentFragment = doc.CreateDocumentFragment()
docFrag.InnerXml = "- widget
"
doc.DocumentElement.AppendChild(docFrag)
Console.WriteLine(doc.OuterXml)
End Sub
End Class