hello,
I have a csv file that I would like to convert to xml. With the code shown below can convert csv to xml.
xml = new XElement (rootElemement,
lines.Where ((line, index) => index> 0). Select (line => new XElement (childElement,
Regex.Split (line, separated.) Select ((column, index) => new XElement (headers [index], column)))));
if I want to create a message xml foreach line of the csv file as I do?
thanks
I have a csv file that I would like to convert to xml. With the code shown below can convert csv to xml.
xml = new XElement (rootElemement,
lines.Where ((line, index) => index> 0). Select (line => new XElement (childElement,
Regex.Split (line, separated.) Select ((column, index) => new XElement (headers [index], column)))));
if I want to create a message xml foreach line of the csv file as I do?
thanks