Here is a snippet of code that will convert a VB.Net DataTable into a string of XML.Dim SB As New StringBuilder
Dim SW As New IO.StringWriter(SB)
Items.WriteXml(SW, Data.XmlWriteMode.WriteSchema)This code writes the contents and schema of the DataTable in to a StringBuilder by way of a StringWriter object.