convert csv file to xml

aswini_1978's Avatar, Join Date: Feb 2007
Light Poster
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

pradeep's Avatar, Join Date: Apr 2005
Team Leader
Download and install MiniXML, create an array from the CSV file and use MiniXML to convert it into XML.