title: how to convert csv file to xml file in c# by columns
body: <p>right now I have csv file in there it contains  Worker, Account Id, Account Code, Hierarchy, and Date column. how do I write c# code to convert csv file to xml file?</p>
  
  <pre><code>select new XElement("Worker",
      new XElement("Account Id", columns[0]),
      new XElement("Account Code", columns[1]),
      new XElement("Hierarchy", columns[2]),
      new XElement("Date", columns[3]),
  </code></pre>
  
  <p>For now I have code something like that, how can I make improve on that code?</p>