in reply to Re: RSS Parse Problem with XML::RSS
in thread RSS Parse Problem with XML::RSS
It prints title and media_keywords, but doesn't show anything for media_content_url. BTW. The RSS I am trying to parse is RSS 2$rss->add_module(prefix=>'dc', uri=>"http://purl.org/dc/terms/"); $rss->add_module(prefix=>'media', uri=>"http://search.yahoo.com/mrss") +; $rss->parse($raw); foreach my $item (@{$rss->{'items'}}) { $title = $item->{'title'}; $media_content_url = $item->{'media'}->{'content'}->{'url'}; $media_keywords = $item->{'media'}->{'keywords'}; print $title, "\n"; print $media_content_url, "\n"; print $media_keywords, "\n"; }
Thanks, Subeen.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: RSS Parse Problem with XML::RSS
by moritz (Cardinal) on Sep 17, 2007 at 08:51 UTC | |
by subeen (Initiate) on Sep 17, 2007 at 10:40 UTC |