StringReader stream = null; XmlTextReader reader = null; DataSet xmlDS = new DataSet(); //声明datatable
stream = new StringReader(xml文件)
reader = new XmlTextReader(stream); //读取文件 xmlDS.ReadXml(reader); //放到datatable里面
http://msdn.microsoft.com/zh-cn/library/fs0z9zxd(v=vs.80).aspx
dt.ReadXml();