Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to Convert CSV to XML in C#
// Convert the CSV data to XML format using C#
using (Converter converter = new Converter(@"path/sample.csv"))
DataConvertOptions options = new DataConvertOptions
Format = DataFileType.Xml
converter.Convert(@"path/CSV-to-XML.xml", options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment