XmlDocument xml = new XmlDocument();xml.LoadXml(str); //str:具有xml格式的字符串
XmlNodeReader reader = new XmlNodeReader(xml);DataSet ds = new DataSet();ds.ReadXml(reader);