Hi,
so i’ve used simplexml_load_file with a xml url source and it works fine. But i’ve now tried it with a data source from a different source and it doesn’t want to display anything. I’ve tried numerous changes and configurations.
The data source is the environment agencies bathing water data http://environment.data.gov.uk/doc/bathing-water.xml?eubwidNotation=ukk2302-35300
this is a variation of the code i’ve been trying
$xml=simplexml_load_file("http://environment.data.gov.uk/doc/bathing-water/ukc2102-03600.xml") or die("Error: Cannot create object");
echo '<div id="heading">';
echo $xml->items[0]->item['href']. "<br>";
echo '</div>';
any help would be appreciated. probably something really simple but i can’t see it