eCommerce Import - Convert CSV to XML

The first line of the CSV must contain the names of the XML file attributes. The remaining lines should have the corresponding data - one line per product. This script expects data in the following format: