try:StringReader sr=new StringReader(str);  //str为你的参数DataSet ds=new DataSet();
ds.ReadXml(sr);