xml parsing

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

xml parsing

Post 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.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

if you're using php 5. I've found the simpleXML object to be very useful (and easy to use).
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

pretty sure we're on PHP 4. guess i'll need to check on that.. any suggestons for non PHP 5 installs?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post 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.
Post Reply