XmlDocument.CreateDocumentFragment creates an XmlDocumentFragment.
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("<items/>")
Dim docFrag As XmlDocumentFragment = doc.CreateDocumentFragment()
docFrag.InnerXml = "<item>widget</item>"
doc.DocumentElement.AppendChild(docFrag)
Console.WriteLine(doc.OuterXml)
End Sub
End Class