So im not sure what or how to really describe what i need but hopefully someone will understand.
single element of the total xml file looks like this:
for
Assuming your Event nodes have one parent (ie
):
$xml = simplexml_load_file($file_xml);
foreach($xml->Event as $event) {
$idAttr = 'ID';
$event_id = (string) $event->attributes()->$idAttr;
$venue_id = (string) $event->Venue->attributes()->$idAttr;
$venue_img_2 = (string) $event->Venue->Image->Url;
}