Using writer As New XmlTextWriter("D:\TEMP\Sample3.xml", New UTF8Encoding(False)) doc.Save(writer) End Using