Why does $xml->accommodation['id']
work but $xml->information['items']
does not?
Here's my xml:
<information items="192">
<accommodation id="41457" code="7565E59E-77D8-4E24-8F40-85ABBB99CCD0"/>
<accommodation id="41597" code="1C858B57-F634-4FBB-877F-1D8831417A8B"/>
(etc.)
Here's my PHP:
$url = "URL TO XML FILE";
$xml = simplexml_load_file($url);
(I'm VERY new to using xml. In case you couldn't tell!)