OK, I admit I'm a total newbie but been reading all day and making no progress in understanding.
I have a script that calls an api, that api returns xml, like so https://dl.dropbox.com/u/40331447/samplereturn.xml
I've tried SimpleXML and it fails as the return contains namespaces, I think.
I will run this script once per hour for eg:
I want to be able to send this to my mysql database and I'll eventually I'll query it based on the location fields
What would be the easiest php method or library to parse this, so that each database entry is stored like so:
( from Parent_<tns:motorways> tns:name), (fromchild <tns:Locations> <tns:name>, <tns:congestion>, <Tns:direction>,<tns:lat>,<tns:lng> etc
So the parent is in each entry along with each iteration of the children.
Hope that makes sence , any help is really appreciated !
Cheers
James.