below example code reads the CSV file to an array. LINQ is used to loop through the array and the contents are written as XML using XElement (System.XML.Linq).
public void ConvCSVToXML()
{
String[] FileContent = File.ReadAllLines(@"D:\Proj\jquery.csv");
String XMLNS = "";
XElement Inv = new XElement("type", from
items in FileContent
let fields = items.Split(',')
select new XElement("fadein",
new XElement("Tab", fields[0]),
new XElement("ProgressBar", fields[1]),
new XElement("ToolTip", fields[2]),
new XElement("Menu", fields[3]),
)
);
File.WriteAllText(@"D:\Proj\jquery.xml", XMLNS + Inv.ToString() );
}
using this you can convert your CSV file xml using C# and C# Convert CSV To XML, .NET CSV To XML