DataTable dt = new DataTable();
DataSet ds = new DataSet();
ds.Tables.Add(dt);
System.IO.StringWriter sw = new System.IO.StringWriter();
System.Xml.XmlTextWriter xw = new System.Xml.XmlTextWriter(sw);
ds.WriteXml(xm)
string s = sw.ToString();
时间: 2024-10-08 10:17:30