Code: Select all
<Diary>
<Event EventName="Lorient v Nice" ClassificationID="1" Classification="Soccer" EventStart="2012-09-22T19:00:00+01:00" EventEnd="2012-09-22T19:00:00+01:00" Streaming="1" BlockedCountryCodes="AE#BH#DZ#EG#FR#IL#IQ#IR#JO#JP#KW#LB#LY#MA#OM#QA#SA#SD#SU#SY#TN#US#YE#" EventGroup="France Le Championnat"/>
</Diary>
https://docs.google.com/open?id=0B699zw ... 3ZKbUhOTEU
I created UDT tag (see bellow), but I do not know how to continue.
Code: Select all
$timeout = 3600*24;
$remote_files = new cge_cached_remote_file('http://www.domain.tld/diary.xml', $timeout);
$xml = $remote_files->file_get_contents();
$json = json_encode($xml);
$array = json_decode($json,TRUE);
print_R($array);