【发布时间】:2020-04-13 15:04:35
【问题描述】:
我想纠正数据来自 sql 数据库的 .txt 文件。我想在 .txt 文件上写的文本是 sql 中的 XML 数据类型。
我在 txt 文件中获取 xml 数据,但它充当单个字符串。我希望它看起来像 xml 格式。
Dim swRMSRequest As StreamWriter
swRMSRequest = File.CreateText(strFileRMSRequest)
swRMSRequest.WriteLine(dtRow("RMS_reqSentM"))
swRMSRequest.Close()
【问题讨论】:
-
你见过What is the simplest way to get indented XML with line breaks from XmlDocument?吗,它是用C#写的,但是使用的方法和你在VB.NET中使用的一样。