读取XML转DataSet封装
作者:互联网
private static DataSet GetDataSetByXmlPath(string path) { DataSet ds = new DataSet(); XmlDocument xdoc = new XmlDocument(); xdoc.Load(path); XmlNodeReader reader = new XmlNodeReader(xdoc); ds.ReadXml(reader); return ds; }
标签:XML,封装,xdoc,XmlDocument,DataSet,reader,new,ds 来源: https://www.cnblogs.com/yuanshuo/p/15882298.html