I want to convert this output http://www.akwl.de/notdienst/xml.php?a=3&m=koord&w=51.954541;7.614748&z=2012-1-16;2012-1-22 into a styleable html.
This was my try...
<?php
$xmlFile = 'http://www.akwl.de/notdienst/xml.php?a=3&m=koord&w=51.954541;7.614748&z=2012-1-16;2012-1-22';
if (file_exists($xmlFile)) {
$xml = simplexml_load_file($xmlFile);
foreach ( $xml->interpret as $user )
{
echo 'Id: ' . $user['id'] . '<br>';
echo 'Datum: ' . $user->datum . '<br>';
echo 'Apotheke: ' . $user->Apotheke . '<br><br>';
}
} else {
exit("File $xmlFile not found.");
}
?>