mit simplexml komme ich in der regel gut zurecht, hab hier nun allerdings ein problem, wo ich nicht weiterkomme. hier ein beispiel xml:
Code: Alles auswählen
<?xml version="1.0"?>
<start>
<files.index Generated="20090927033737">
<file Product_ID="2622046" Prod_ID="15939529" Catid="575" Model_Name="FinePix Z30 Digital Camera">
</file>
<file Product_ID="2622048" Prod_ID="15939256" Catid="575" Model_Name="FinePix Z30 Digital Camera">
</file>
</files.index>
</start>
Nun will ich das Parsen und habe bisher dies hier:
Code: Alles auswählen
$xml = new SimpleXMLElement($content);
foreach ($xml->files.index->file as $file)
{
echo $file['Product_ID'] . "<br>";
}
Temporär läuft es erstmal mit einem str_replace als Hilfe
Smilla