Parsing XML into PHP to insert into a MySQL DB

Is this easily done. I've been asked to do this using xml_set_character_data_handler() in PHP. I have then got to insert this data into a MySQL DB. I have used a script from uk.php.net to print out this data, but it's in an array.

Can anyone here point me in the right direction of parsing XML into PHP and then seperating each element to insert the data into a MySQL DB.

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Ask a Question