[Webpro] Rss/xml into flash with extra info filtering xhtml etc

Valentijn Langendorff info at multimediaconsult.nl
Mon Apr 18 12:20:48 EDT 2005



Subject: Rss-xml feed import into flash?

Hi all,

I want to implement hourly rss/xml weather data into my flash application.
I get this back from a rss url push :

<?xml version="1.0" encoding="ISO-8859-1"  ?><rss
version="2.0"><channel><title>Amsterdam Airport Schiphol, Netherlands
Weather</title><link>http://www.rssweather.com/icao/EHAM/wx.php</link
<http://www.rssweather.com/icao/EHAM/wx.php>
<http://www.rssweather.com/icao/EHAM/wx.php> ><description><![CDATA[Current
<http://www.rssweather.com/icao/EHAM/wx.php>  weather, forecasts and alerts
delivered using RSS.<p>The weather information for this RSS feed is taken
from the National Weather Service (http://weather.noaa.gov/), and powered by
HamWeather (http://www.hamweather.com/).  The RSS feed is provided so that
you don't have to look out of the window to find out the weather, do not use
it for making decisions that involve yours or anybody elses
life.</p><p><b>Using the Feeds</b><ul><li>Request Frequency - The feeds are
updated once per hour.  More frequent requests may result in your access
being limited.</li><li>Web Site Usage - If you are using the feed on your
web site, you are required to maintain a link to rssWeather.com and
hamweather.com</li></ul></b></p>]]></description><ttl>60</ttl><generator>Ham
Weather 3.084 (enAmsterdam">http://www.hamweather.com/)</generator
<http://www.hamweather.com/)>  <http://www.hamweather.com/)>
><language>en</language><item><title>Amsterdam <http://www.hamweather.com/)>
Airport Schiphol, Netherlands Weather :: 14C
Rain</title><link>Current">http://www.rssweather.com/icao/EHAM/wx.php</link
<http://www.rssweather.com/icao/EHAM/wx.php>
<http://www.rssweather.com/icao/EHAM/wx.php> ><category>Current
<http://www.rssweather.com/icao/EHAM/wx.php>
Conditions</category><pubDate>Mon, 18 Apr 2005 14:34:00
+0100</pubDate><description>14C Rain</description><body
xmlns="http://www.w3.org/1999/xhtml"><h4><a
href="http://www.rssweather.com/icao/EHAM/wx.php"><img
src="http://www.rssweather.com/images/fcicons/rain.gif" alt="rain"
class="icon" width="55" height="58" id="rain.gif" border="0"/></a><span
class="sky">Rain</span> <span class="temp">14&#176;C</span></h4><dl
style="display: inline;">
<dt style="display: inline; font-weight: bold;">Humidity:</dt><dd
id="humidity" style="display: inline;">82%</dd>
<dt style="display: inline; font-weight: bold;">Wind Speed:</dt><dd
id="windspeed" style="display: inline;">24 KMH</dd>
<dt style="display: inline; font-weight: bold;">Wind Direction:</dt><dd
id="winddir" style="display: inline;">S (180&#176;)</dd>
<dt style="display: inline; font-weight: bold;">Barometer:</dt><dd
id="pressure" style="display: inline;"> 999 mb</dd>
<dt style="display: inline; font-weight: bold;">Dewpoint:</dt><dd
id="dewpoint" style="display: inline;">11&#176;C</dd>
<dt style="display: inline; font-weight: bold;">Heat Index:</dt><dd
id="heatindex" style="display: inline;">14&#176;C</dd>
<dt style="display: inline; font-weight: bold;">Wind Chill:</dt><dd
id="windchill" style="display: inline;">12&#176;C</dd>
<dt style="display: inline; font-weight: bold;">Visibility:</dt><dd
id="visibility" style="display: inline;">6 km</dd></dl></body><guid
isPermaLink="false">C-14:34 GMT+1 MON APR 18
2005</guid></item></channel></rss>


I¹m capable filtering xml nodes and properties but here it¹s a combination
from xml/rss and html tables.
How can i filter out for e.g. The table elements from the tables with the
id¹s : humidity, windspeed etc ??

Any help tips ?? Should I make php app and write/split data into mysql or a
txt file and import it back into flash ?
But I think i can import it directly ???

Regards Valentijn



ICT Solutions & Design

Valentijn Langendorff
E : info at multimediaconsult.nl

------ End of Forwarded Message


On 29-11-2004 23:48, "Timo Stamm" <t.stamm at macnews.de> wrote:

> I didn't mean to rectify you, but the info about AMFPHP.
> 
> 
> Some details:
> 
> AMF is a protocol for object serialization. It is comparable to SOAP,
> but it uses binary encoding, while SOAP uses XML.
> 
> APIs are available for PHP, Python, Perl, Java, ColdFusion, and propably
> many other languages.
> 
> 
> An active client side is required to ensure a good usability in web
> applications. The biggest hurdle to this is the lack of a standardized
> support for decent graphical interface elements in browsers.
> 
> A protocol for object serialization is the next logic step. AMF is one,
> among others. But it's actually quite a good one because it is efficient.
> 
> Timo
> 
> 
> pete otaqui wrote:
>> i stand corrected!
>> 
>> :p
> ------------------------------------------------------------------
> send message to the list:               mailto:flashpro at muinar.org
> [FlashPro] list info, subscribe, archive:   http://flash-list.com/
> There's also a WebPro mailing list:     http://webdesign-list.com/
> cutting-edge sounds for flash:            http://flash-sounds.com/




ICT Solutions & Design

Valentijn Langendorff
E : info at multimediaconsult.nl



More information about the Webpro mailing list