Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

C#
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..
Posted
Updated 23-Mar-11 18:18pm
v2

1 solution

Hope this[^] might help you.
 
Share this answer
 
v2
Comments
honeyashu 24-Mar-11 0:17am    
Thanks for your immediate reply but this is too for one file to read..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900