RAAAAM
RAAAAM

Reputation: 3380

How to get Image from Rss

Thanks for your previous replies,

I am trying to parse an image from Rss feed, but the tag name for the image url differs from many RSS feeds. I have given the url, _imageE in SAX parser, but the URL will not fetch from the RSS xml. In some RSS they provide an image link like <media:thumbnail width="144" height="81" url="http://imageLink/image.jpg"/> how can I parse this kind of image url. Please guide me.

Upvotes: 1

Views: 1417

Answers (1)

Stephen C
Stephen C

Reputation: 719189

I think you might be misunderstanding what that element means. According to the specification, the url attribute is mandatory and contains the URL of the thumbnail image. So you can simply extract it using the SAX parser. Once you've extracted the URL, you should be able to use HTTP to fetch the image that the URL refers to. There's not much point "parsing" the URL.

Upvotes: 1

Related Questions