Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP Script to convert .CSV files to .XML

Tags:

php

xml

csv

Just wondering if anyone can point me in the direction of some tips / a script that will help me create an XML from an original CSV File, using PHP.

Cheers

like image 335
StuBlackett Avatar asked Jan 31 '11 15:01

StuBlackett


1 Answers

Sorry to bring up an old thread but I tried this script and I'm getting a DOM Exception error

The headers of our CSV Files are display_name office_number mobile_number and the error I'm receiving is DOMDocument->createElement('\xEF\xBB\xBFdisplay_name') #1 {main}

like image 64
oxxide_ Avatar answered Sep 21 '22 12:09

oxxide_