I am looking to include the images from the BBC news feed. They are in the 
format:

    <item> 
      <title>British women attacked in Zanzibar</title>  
      <description>Two 18-year-old women from London have had acid thrown 
in their faces on the east African island of Zanzibar, police 
say.</description>  
      
<link>http://www.bbc.co.uk/news/uk-23611840#sa-ns_mchannel=rss&amp;ns_source=PublicRSS20-sa</link>
 
 
      <guid 
isPermaLink="false">http://www.bbc.co.uk/news/uk-23611840</guid>  
      <pubDate>Thu, 08 Aug 2013 12:40:28 GMT</pubDate>  
      <media:thumbnail width="66" height="49" 
url="http://news.bbcimg.co.uk/media/images/69178000/jpg/_69178361_facebook.jpg"/>
 
 
      <media:thumbnail width="144" height="81" 
url="http://news.bbcimg.co.uk/media/images/69178000/jpg/_69178575_facebook.jpg"/>
 
    </item> 

I can extract the content in the <title> or <link> tags with something like 
"result.feed.entries.title". How do I extract the value of the url 
attribute of the media tag?

Many thanks for any help

Bis :-)


On Friday, June 7, 2013 5:29:45 PM UTC+1, jgeerdes [AJAX APIs "Guru"] wrote:
>
> Well, it is certainly possible, but the problem is that there is no 
> standard way to include images in a feed. So exactly how you would do it in 
> your use case will depend on the exact feed(s) you're trying to use. For 
> instance, I've seen images added to some feeds as custom tags, included in 
> the item description, and a number of other routes. Depending on how the 
> image is included, you may need to obtain the feed in MIXED format and use 
> DOM methods on the entry's xmlNode to find the image, search the element's 
> content property for the img tag, etc., etc., etc.
>
> jg
>
>
>
>
>
> On Fri, Jun 7, 2013 at 10:37 AM, G.J Ramanaa <[email protected]<javascript:>
> > wrote:
>
>> can anyone say how to get image in feeds with an example using google 
>> feed api  
>>
>> -- 
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Google AJAX APIs" group.
>> To post to this group, send email to
>> [email protected] <javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> To view this message on the web, visit
>>
>> https://groups.google.com/d/msgid/google-ajax-search-api/3ce59a5d-1348-4487-8357-d19f6a998a9e%40googlegroups.com?hl=en_US
>> For more options, visit this group at
>> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
>>  
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google AJAX APIs" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected]<javascript:>
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>
>
> -- 
> Jeremy R. Geerdes
> Generally Cool Guy
> Des Moines, IA
>
> If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan 
> Church!
> http://www.debraheightswesleyan.org
>  

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
To view this message on the web, visit
https://groups.google.com/d/msgid/google-ajax-search-api/8b3d37d1-54ab-4fa5-8d64-f93e6bdc5a2b%40googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to