11-14-2008, 02:02 PM
|
#7 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
|
I often attack XML documents with an XPath  query (eg, $xml->xpath('//channel/items')) which returns an array of matching elements, with numeric keys.
Also, using XPath, you could filter out only the items which have an mp3 enclosure (for the podcast) with a query like //channel/items[enclosure[@type="audio/mpeg"]] 
|
|
|
|