I'm pretty new to CSV and XML files in general, and I want to convert every CSV file in my folder to an XML file. I'd like some tips how to work with CSV files, how to go about processing and converting the files, and how to go about repeating the conversion process for every file in my folder. Thanks in advance.
Example CSV
id,name,surname,street,number,town
112345,gentoo,king,bourkley,6,novi sad
446636,mark,smith,milson,14,capetown
Example XML
<root>
<entry id='1'>
<id>112345</id>
<name>gentoo</name>
<surname>king</surname>
<street>bourkley</street>
<number>6</number>
<town>novi sad</town>
</entry>
<entry id='2'>
<id>112345</id>
<name>mark</name>
<surname>smith</surname>
<street>milson</street>
<number>14</number>
<town>capetown</town>
</entry>
</root>
Of course, I'd like the simplest possible solution. Using libraries as basic as they get.