XmlDocument.ToString (gb.xml)

Function ToString ( [ Indent As Boolean ] ) As String

Formats the current document to a string, which can be later re-parsed.

If Indent is set to True, then the string will be indented (with line breaks and spaces), which will make it more human-readable.