I am using ROME parser to parse my RSS/Atom feeds. Now the problem is that it doesn't give image URL of the news feed/entry. Part of the problem is also because feeds are not consistent and they put image urls inconsistently.
BBC news puts image url inside <media:thumbnail...>
element
<item>
<title>Dementia in care homes 'more common'</title>
<description>Eight out of 10 residents in care homes are now thought to have dementia or severe memory problems, new data shows.</description>
<link>http://www.bbc.co.uk/news/health-21579394#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa</link>
<guid isPermaLink="false">http://www.bbc.co.uk/news/health-21579394</guid>
<pubDate>Tue, 26 Feb 2013 00:28:31 GMT</pubDate>
<media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/66064000/jpg/_66064884_c0016428-geriatric_care-spl.jpg"/>
<media:thumbnail width="144" height="81" url="http://news.bbcimg.co.uk/media/images/66064000/jpg/_66064885_c0016428-geriatric_care-spl.jpg"/>
</item>
But some of the news feeds put images inside enclosure element. And some of the feeds don't have them at all.
So my problem is; how can i get them if they are present in the feed. So far Rome API has been working perfectly for me; but now I am stuck at this.