RSS feed how to pull just the image from it?

Discussion in 'XML & RSS' started by kdemonte, Aug 16, 2007.

  1. #1
    Is it possible to somehow write a code to olnly pull the image onto my website from and rss feed? For example if this is the feed:
    <?xml version="1.0" encoding="iso-8859-1" ?>
    <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:ynews="http://news.yahoo.com/rss/">
    <channel>
    <title>Yahoo! News: Top Stories</title>
    <copyright>Copyright (c) 2007 Yahoo! Inc. All rights reserved.</copyright>
    <link>http://news.yahoo.com/i/716</link>
    <description>Top Stories</description>
    <language>en-us</language> 
    <lastBuildDate>Thu, 16 Aug 2007 15:18:13 GMT</lastBuildDate>
    <ttl>5</ttl> 
    
    <image>
    <title>Yahoo! News</title>
    <width>142</width>
    <height>18</height>
    <link>http://news.yahoo.com/i/716</link>
    <url>http://us.i1.yimg.com/us.yimg.com/i/us/nws/th/main_142b.gif</url>
    </image>
    <item>
    Code (markup):
    I want to have the <image> only displayed on my site? Anyone know how I can accomplish this?
     
    kdemonte, Aug 16, 2007 IP