XNode.ToString returns the indented XML for this node.
Imports System
Imports System.Xml
Imports System.Xml.Schema
Class MainClass
Shared Sub Main()
Dim xmlTree As XElement = _
<Root>
<Child1>1</Child1>
</Root>
Console.WriteLine(xmlTree)
End Sub
End Class