R.A.,
You can call the WriteXml method on the DataSet, passing a new instance
of a StringWriter. Once you have that, call that, you can call the ToString
method on the StringWriter class, and it should give you the string.
However, I was under the impression that if you returned just a dataset
from the web method, it would handle the formatting of that into XML.
Have you tried just returning the DataSet from the web method?
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"R.A." <te**@hotmail.com> wrote in message
news:O7****************@TK2MSFTNGP11.phx.gbl...
Hi
I have a web method that returns a string (which has an xml format).
I get a dataset and I need to convert the table in the dataset to xml and
then to send it as a string to the client. How can I do this?
Thanks