C# 把XML字节流保存到DataSet里

        public static DataSet ToDataSetByStream(string Stream)
        {
            DataSet ds = new DataSet();
            StringReader str = new StringReader(Stream);
            XmlTextReader xm = new XmlTextReader(str);
            ds.ReadXml(xm);
            return ds;
        }

 

posted @ 2014-02-12 17:28  JasonGu0  阅读(506)  评论(0编辑  收藏  举报