Re: php get rss tag using DOM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I know rss_php, but it doesn't fit my solution.

Is anyone able to help me with my question?

thx

2009/2/8 Nathan Rixham <nrixham@xxxxxxxxx>

>  Morris 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
>>
>>  }
>>
>>
> use http://rssphp.net/ you can view the source online and it's all done
> using DOMDocuments :)
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux