DataTableToXML
public string CovertDataTableToXML(DataTable datatable)
{
StringBuilder strXml = new StringBuilder();
strXml.AppendLine("");
for (int i = 0; i < datatable.Rows.Count; i++)
{
strXml.AppendLine("");
for (int j = 0; j < datatable.Columns.Count; j++)
{
strXml.AppendLine("<"+datatable.Columns[j].ColumnName+">"+datatable.Rows[i][j]+""+"<"+datatable.Columns[j].ColumnName+">");
}
strXml.AppendLine("");
}
strXml.AppendLine("");
return strXml.ToString();
}