Code: Alles auswählen
<?php
$doc = domxml_open_file("http://...../datei.xml");
$arr = $doc->get_elements_by_tagname('Item');
foreach ($arr as $Inhalt) {
$Gesamt = $Inhalt -> get_elements_by_tagname('URL');
if (count($Gesamt) > 0) {$Ergebnisse = $Gesamt[0];
$wieviel = $Ergebnisse->get_content();
}
print "$wieviel\n";
}
?>
Code: Alles auswählen
<?php
$doc = domxml_open_file("http://...../datei.xml");
$arr = $doc->get_elements_by_tagname('Item');
foreach ($arr as $Schluessel -> $Inhalt) {
$Gesamt = $Schluessel -> $Inhalt -> get_elements_by_tagname('MediumImage') -> ('URL');
if (count($Gesamt) > 0) {$Ergebnisse = $Gesamt[0];
$wieviel = $Ergebnisse->get_content();
}
print "$wieviel\n";
}
?>
Gruß Mele