Trying to wrap my head around importing XML data into a PHP script using SimpleXML?

justin h

New member
I have an XML file which I need to import, extract data, and then enter that data into my data base. I'm playing around with SimpleXML functions, but I haven't been able to figure anything out yet.

This is the basic format of my XML file:
<fandango data>
.....<movies>
..........<movie>
...............<movie_id>
...............<movie_title>
..........</movie>
.....</movies>
.....<sessions>
..........<session>
...............<session_id>
...............<movie_id>
...............<date_time>
..........</session>
.....</sessions>
</fandango data>

I'm not looking for someone to write a script for me, just some help importing the data from the .xml file into arrays and/or variables.
 
Back
Top