Click here to Skip to main content
14,494,342 members
Rate this:
Please Sign up or sign in to vote.
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.

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

Rate this:
Please Sign up or sign in to vote.

Solution 1

Hope this[^] might help you.
   
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100