« Return to Thread: php get rss tag using DOM

Re: php get rss tag using DOM

by Rodgerr :: Rate this Message:

Reply to Author | View in Thread

Getting RSS Feeds is going really good right now, what amazing technology :)
 Nickname Msn
Morris-25 wrote:
Hi,

I am trying to write a programme to read a rss xml file.

...
<media:content url="*exampe.jpg*" ...>
...

    scan anyone tell me how to get the url attribute? I wrote some codes
similar:


 $doc = new DOMDocument;
 $doc->load($myFlickrRss);

 $r = $doc->getElementsByTagName('media:content');
 for($i=0;$i<=$r->length;$i++)  {

  // help here

 }

 « Return to Thread: php get rss tag using DOM