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)); //就是这一句 呵呵
2.DataSet转换成XML
DataSet ds = new DataSet();
string strXML =ds.GetXml();