I am using .NET and trying to convert an CSV data input (Example 1st row is header and following rows are the data: header1,header2,header3;row11,row12,row13;row21,row22,row23). Trying to convert this into XML format based on another XML template (there are multiple XML templates based on which the corresponding XML should be generated)
What is best practice to do this in .NET?
Sample template1:
<Claims>
<Claim>
<Header1></Header1>
<Header2></Header2>
<Header3></Header3>
</Claim>
</Claims>
Sample template2:
<Handlers>
<Handler>
<Header2></Header2>
<Header3></Header3>
<Header1></Header1>
</Handler>
</Handlers>