public static string
ConvertDatatableToXML(DataTable dt)
{
MemoryStream str = new
MemoryStream();
dt.WriteXml(str, true);
str.Seek(0, SeekOrigin.Begin);
StreamReader sr = new
StreamReader(str);
string xmlstr;
xmlstr =
sr.ReadToEnd();
return (xmlstr);
}
No comments:
Post a Comment