XmlWriterSettings settings = new XmlWriterSettings();
settings.Encoding = Encoding.UTF8;
settings.Indent = true;
using (XmlWriter writer = XmlWriter.Create(stream, settings))
答案 0 :(得分:1)
Dim settings As New XmlWriterSettings()
settings.Encoding = Encoding.UTF8
settings.Indent = True
Using writer As XmlWriter = XmlWriter.Create(stream, settings)
End Using
您可以将其用于转化:
答案 1 :(得分:1)
Dim settings As New XmlWriterSettings()
settings.Encoding = Encoding.UTF8
settings.Indent = True
不知道在最后一行。