Page 1 of 1

xml parsing

Posted: Mon Jul 17, 2006 10:31 am
by Charles256
generally speaking how do you go about parsing an xml file and storing teh appropriate parts into a database? are there built in fuctions? if so, which? just some insight would be great.thanks.

Posted: Mon Jul 17, 2006 10:35 am
by Burrito
if you're using php 5. I've found the simpleXML object to be very useful (and easy to use).

Posted: Mon Jul 17, 2006 10:44 am
by Charles256
pretty sure we're on PHP 4. guess i'll need to check on that.. any suggestons for non PHP 5 installs?

Posted: Mon Jul 17, 2006 10:48 am
by Burrito
if you're on 4, check this out.

http://us3.php.net/xml

I've never used the xml_parser functions but I hear they're pretty easy to work with as well.