Gets or sets a value indicating whether to preserve white space in element content.
Imports System
Imports System.IO
Imports System.Xml
publicclass Sample
public shared sub Main()
Dim doc as XmlDocument = new XmlDocument()
doc.PreserveWhitespace = false
doc.Load("book.xml")
doc.PreserveWhitespace = true
doc.Save(Console.Out)
end sub
end class