我能够将 xml 文件读入数据集。目前它以字符串格式打印。是否可以通过 web 方法调用以 xml 格式打印。我想通过 dataset.writexml 发布
Public Function HelloWorld() As String
Dim dsProducts As New DataSet()
Dim swriter As New IO.StringWriter
dsProducts.ReadXml(AppDomain.CurrentDomain.BaseDirectory & "\Product.xml").ToString()
dsProducts.WriteXml(swriter)
Return swriter.ToString()
End Function
XMLTextWriter 可以吗?