Mostafa Dev

Mostafa Dev

  • NA
  • 150
  • 2.5k

Display data in grid-view or listview from multi XML files

May 11 2015 4:52 AM

i need to display data in grid-view or list-view form more than one XML files this XML files have the same schema

the second issue this xml files generated Automatically by user i mean if the user open any request on the system the XML file created on specific folder so

i need to refer to this path no for specific XML file  
 
this is my code and its work in windows application but i cant use web application to read from multi XMl files
 
Appreciate any help :)
 
 DataSet ds1 = new DataSet();      
   ds1.ReadXml(@"c:\temp\test.xml");  
        DataSet ds2 = new DataSet();     
    ds2.ReadXml(@"c:\temp\test.xml");       
   ds2.Tables["Product"].Merge(ds1.Tables["Product"]);      
   dataGridView1.DataSource = ds2.Tables["Product"];