Reputation: 3380
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
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