Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
My customer wants me to read the cells from an excel workbook and build an xml document based on the custom tags he would provide to me. He has agreed to provide the tag names in another file. I will need to use the tags he has provided for the xml structure and the values from the excel sheet.
Can anyone please guide me here..

Thanks in advance
Posted
Updated 18-Sep-13 0:07am
v2
Comments
Thanks7872 18-Sep-13 6:03am    
Tag question properly. XML,Excel,XMLReader are not enough.

1 solution

Hey if you load all your data from your excel file in to a datatable the filter the datatable, once filtered based on your criteria the datatable has a handy built in function WriteToXML. Hope this helps.

Couple of links to help..
http://stackoverflow.com/questions/7244971/how-do-i-import-from-excel-to-a-dataset-using-microsoft-office-interop-excel[^]

http://msdn.microsoft.com/en-us/library/system.data.datatable.writexml.aspx[^]
 
Share this answer
 

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