convert csv file to xml

aswini_1978's Avatar, Join Date: Feb 2007
Light Poster
Hi,
I would like to know how to conver a csv file to xml in PHP.

I have fetched some records from database and saved in a csv file. Now I want to conver this file to xml by using PHP.

Thanks a ton in advance

Regards
Aswini
0
pradeep's Avatar, Join Date: Apr 2005
Team Leader
Download and install MiniXML, http://minixml.psychogenic.com/api.html#docfromarray create an array from the CSV file and use MiniXML to convert it into XML.