I am able to read the xml file into dataset. Currently it is printing in a string format. Is it possible to print in xml format from web method call. I want to publish through 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
Is it possible with XMLTextWriter?