hello
i am creating a webservice that return datatable but if i use this webservice in php,iphone then i need in xml
so i want to retrun data table in xml formate
how i do that
plz help me
How to convert datatable to xml for all user can use webservice
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Krishna GaradRank #191 · 12.8K reputationPosted Jan 19, 2012, 3:41 AM EST
//populate you datatable first and before returning
dt.RemotingFormat = SerializationFormat.Xml;
return dt;
which will return datatable in Xml format.
Dharmesh SharmaRank #1,974 · 741 reputationPosted Feb 28, 2012, 8:32 AM EST
how to convert databale into xml for return in xml
thanks