Search the web
Sign In
New User? Sign Up
ydn-dotnet · CLOSED: Yahoo! .NET Developer Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Using the weather rss feed   Message List  
Reply | Forward Message #247 of 263 |
Re: Using the weather rss feed

--- In ydn-dotnet@yahoogroups.com, "betheljt" <betheljt@...> wrote:
>
> I'm working on an application that will display current weather
> information. I'm able to be everything I need from the xml rss feed
> except the picture of current weather conditions (sun, sun with a cloud
> in front of it, etc). The xml doesn't seem to return an image or a url
> to an image. Am I missing something? Can anyone explain how to do
> this?

It looks like the image you're looking for is embedded in the item
description element:

<description><![CDATA[
<img src="http://l.yimg.com/us.yimg.com/i/us/we/52/33.gif"/><br />
<b>Current Conditions:</b><br />
Fair, 63 F<BR />
<BR /><b>Forecast:</b><BR />
Sun - Partly Cloudy. High: 69 Low: 57<br />
Mon - Partly Cloudy. High: 77 Low: 57<br />
<br />
<a
href="http://us.rd.yahoo.com/dailynews/rss/weather/Sunnyvale__CA/*http://weather\
.yahoo.com/forecast/USCA1116_f.html
">Full
Forecast at Yahoo! Weather</a><BR/>
(provided by The Weather Channel)<br/>
]]></description>

If your code peeks inside the <description> contents, you should be
able to pluck out the first image inside.

Brian Cantoni
YDN Engineering




Mon Sep 22, 2008 4:59 am

brian.cantoni
Online Now Online Now
Send Email Send Email

Forward
Message #247 of 263 |
Expand Messages Author Sort by Date

I'm working on an application that will display current weather information. I'm able to be everything I need from the xml rss feed except the picture of...
betheljt
Offline Send Email
Sep 19, 2008
9:17 pm

... It looks like the image you're looking for is embedded in the item description element: <description><![CDATA[ <img...
Brian Cantoni
brian.cantoni
Online Now Send Email
Sep 22, 2008
4:59 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help