i am new in javascript i need to convert csv string data into xml look like below
CSV data:
product,pakageing,qty
mno,100ML,200
pqr,400ML,300
abc,150ML,100
XML should be as below:
<productData>
<product>mno</product>
<pakageing>100ML</pakageing
<qty>200</qty>
</productData>
<productData>
<product>pqr</product>
<pakageing>400ML</pakageing
<qty>300</qty>
</productData>
<productData>
<product>abc</product>
<pakageing>150ML</pakageing
<qty>100</qty>
</productData>