Re: php get rss tag using DOM
| From: | Nathan Rixham | Date: | Sun, 08 Feb 2009 18:22:54 +0000 |
| Subject: | Re: php get rss tag using DOM | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287928@lists.php.net to get a copy of this message | ||
Morris wrote:
Hi, I am trying to write a programme to read a rss xml file. ... <media:content url="*exampe.jpg*" ...> ...use http://rssphp.net/ you can view the source online and it's all done using DOMDocuments :)scan anyone tell me how to get the url attribute? I wrote some codessimilar: $doc = new DOMDocument; $doc->load($myFlickrRss); $r = $doc->getElementsByTagName('media:content'); for($i=0;$i<=$r->length;$i++) { // help here }