Last active
February 15, 2023 12:51
-
-
Save GroupDocsGists/240c47d8a3ab8debabd13be9a83eac3a to your computer and use it in GitHub Desktop.
How to Convert CSV to XML in C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Convert the CSV data to XML format using C# | |
using (Converter converter = new Converter(@"path/sample.csv")) | |
{ | |
WebConvertOptions options = new WebConvertOptions | |
{ | |
Format = WebFileType.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