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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Dharmesh SharmaPosted Feb 28, 2012, 1:32 PM
how to convert databale into xml for return in xml
thanks
Krishna GaradPosted Jan 19, 2012, 8:41 AM
//populate you datatable first and before returning
dt.RemotingFormat = SerializationFormat.Xml;
return dt;
which will return datatable in Xml format.