Converting XML to Excel using C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ankurnz
    New Member
    • Jun 2013
    • 1

    Converting XML to Excel using C#

    hi,

    I am want to convert Xml file to excel file using C#. I have written the entire code but got stuck at one place. I dont know how to deal with nodes. As, there are many nodes in xml file. My code due to some reason is printing only first node of xml file in excel. I want all nodes and its child nodes data to be printed in excel spreadsheet.
    I dont know how to deal with XmlNodeReader? Is that the right class I should be looking at.
    I have also written a recursion class that is extracting the all nodes and child nodes and printing on console. But I do not know how to add them to dataset/datatable.

    Someone Help!!!!
Working...