1.xml转换成DataSet
string strXML = "<DataRow><Row id=\"2\" name=\"name2\"/><Row id=\"1\"
name=\"name1\"/></DataRow>";
DataSet ds = new DataSet();
ds.ReadXml(new System.IO.StringReader(strXML));
name=\"name1\"/></DataRow>";
DataSet ds = new DataSet();
ds.ReadXml(new System.IO.StringReader(strXML));
2.DataSet转换成XML
DataSet ds = new DataSet();
string strXML=ds.GetXml();
string strXML=ds.GetXml();