2011-03-21 133 views
0
XmlWriterSettings settings = new XmlWriterSettings(); 
    settings.Encoding = Encoding.UTF8; 
    settings.Indent = true; 
    using (XmlWriter writer = XmlWriter.Create(stream, settings)) 

回答

1
Dim settings As New XmlWriterSettings() 
settings.Encoding = Encoding.UTF8 
settings.Indent = True 
Using writer As XmlWriter = XmlWriter.Create(stream, settings) 

End Using 

您可以使用此轉換:

http://converter.telerik.com/

1
Dim settings As New XmlWriterSettings() 
settings.Encoding = Encoding.UTF8 
settings.Indent = True 

上雖然最後一行不知道。

相關問題