同时读取多个XML文件插入数据集 [英] Reading Multiple XML Files Simultaneously & inserting into dataset

查看:125
本文介绍了同时读取多个XML文件插入数据集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我必须创建一个可以同时读取8个XML文件(由AppDomain.BaseDirectory提供)的exe文件.创建一个数据集,其中包含与xmls相同的8个数据表''.我已经为单个XML文件完成了操作,但无法为多个XML文件完成.

Hi All,
I have to create an exe which Read 8 XML Files( provided in AppDomain.BaseDirectory) simultaneously & create a dataset with 8 datatables of same naime as of xmls''. I had done for a single XML File but unable to do for multiple.

DataSet dsReturn = new DataSet();

            try
            {
                string secFilePath = AppDomain.CurrentDomain.BaseDirectory + " /File1.xml"
                 if (File.Exists(secFilePath))
                     dsReturn.ReadXml(secFilePath, XmlReadMode.ReadSchema);
            }
            catch (Exception ex)
            {
                LogError("Error in uploading file", ex);
            }
            return dsReturn;



请帮助..



Please Help..

推荐答案

希望 ^ ]可能会为您提供帮助.
Hope this[^] might help you.


这篇关于同时读取多个XML文件插入数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆