A XML-File has this structure:
<anbieter>
<immobilie>
<geo>
<plz>0750</plz>
</geo>
</immobilie>
<immobilie>
<geo>
<plz>0780</plz>
</geo>
</immobilie>
….
</anbieter>
I try to read this with the following code:
$xml = simplexml_load_file($PATH_TO_XML);
foreach($xml -> anbieter -> children('immobilie') as $immobilie) {
$ort = $immobilie -> geo;
print $ort;
}
Unfortunately something is wrong, it doesn't work. Can anyone help me?
Thanks Thomas