# How to use RSS2 parser to parse tags with colon?

**URL:** <https://www.ruby-forum.com/t/how-to-use-rss2-parser-to-parse-tags-with-colon/115933>\
**Category:** Ruby\
**Created:** [September 30, 2007, 4:01pm UTC](https://www.ruby-forum.com/t/how-to-use-rss2-parser-to-parse-tags-with-colon/115933 "2007-09-30T16:01:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mister\_Yu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/22d042/32.png) [@Mister\_Yu](https://www.ruby-forum.com/u/Mister_Yu)\
**Post date:** [September 30, 2007, 4:01pm UTC](https://www.ruby-forum.com/t/how-to-use-rss2-parser-to-parse-tags-with-colon/115933/1 "2007-09-30T16:01:17Z")

</div>

Hello all,

I am trying to user the RSS2 parser to parse the weather feed from  
weatherBug.

i know how to parse the tags without colon, it just as easy as:  
“result.channel.title”

but how to i parse something with a colon like aws:forecast? how do  
i write the code?

the tag is under channel tag and it looks like this:  
\<aws:weather xmlns:aws=“[Cloud Computing Services - Amazon Web Services (AWS)](http://www.aws.com/aws)”\>

\<aws:api version=“2.0” /\>aws:WebURL[http://web.live.weatherbug.com/](http://web.live.weatherbug.com/)  
World/Page/SetWorldStation.aspx?  
zcode=Z5546&city\_id=61301&world\_stat=&lid=WSTAT\</  
aws:WebURL\>

\<aws:forecasts type=“Detailed” date=“Sun, 30 Sep 2007 00:00:00  
GMT”\>aws:locationaws:cityWestminster\</  
aws:city\>aws:citycode61301\</aws:citycode\>aws:countryUnited  
Kingdom\</aws:country\>\</aws:location\>

aws:forecast\<aws:title alttitle=“SUN”\>Today\</aws:title\>\<aws:short-  
prediction\>Increasing Clouds\</aws:short-prediction\>\<aws:image  
isNight=“0” icon=“cond066.gif”\>[http://deskwx.weatherbug.com/images/](http://deskwx.weatherbug.com/images/)  
Forecast/icons/cond066.gif\</aws:image\>aws:descriptionToday\</  
aws:description\>aws:prediction Afternoon clouds. Mild. Temperature  
of 16&deg;C. Winds 15km E. Humidity will be 71% with a dewpoint  
of 8&deg; and comfort level of 16&deg;C. There is a 32% chance  
of precipitation.\</aws:prediction\>\<aws:high units=“°C”\>16\</  
aws:high\>\<aws:low units=“°C”\>8\</aws:low\>\</aws:forecast\>aws:forecast

aws:forecast\<aws:title alttitle=“MON”\>Monday\</aws:title\>\<aws:short-  
prediction\>Rain\</aws:short-prediction\>\<aws:image isNight=“0”  
icon=“cond005.gif”\>[http://deskwx.weatherbug.com/images/Forecast/icons/](http://deskwx.weatherbug.com/images/Forecast/icons/)  
cond005.gif\</aws:image\>aws:descriptionMonday\</  
aws:description\>aws:predictionLight rain. Mostly cloudy. Mild,  
Breezy. Temperature of 14&deg;C. Winds 26km ENE. Humidity will be  
85% with a dewpoint of 10&deg; and comfort level of 12&deg;C.  
There is a 55% chance of precipitation.\</aws:prediction\>\<aws:high  
units=“°C”\>14\</aws:high\>\<aws:low units=“°C”\>12\</aws:low\>\</  
aws:forecast\>aws:forecast

\</aws:weather\>
