I saw this excellent post:
http://sqldud.blogspot.com/2009/01/how-to-convert-csv-to-xml-using-c.html
I have a csv file with the column titles in the first row of the csv.
I would also like the linq statement to be able to handle a variable length number of columns.
That way I would not have to change the code if more columns are added.
Is there a way to do this?
It would be great if the elements were the name of the column headers(first row).
You could accomplish this with code like the following
Which would turn a CSV file with the following contents
Into an XML document