<rss version="2.0"
xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0"
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
<channel>
<title>yahoo! weather - broomfield, co</title>
<yweather:location city="broomfield" region="co" country="us"/>
<yweather:astronomy sunrise="6:36 am" sunset="5:50 pm"/>
<item>
<title>conditions for broomfield, co at 7:47 am mst</title>
<pubdate>fri, 27 feb 2009 7:47 am mst</pubdate>
<yweather:condition text="partly cloudy"
code="30" temp="25"
date="fri, 27 feb 2009 7:47 am mst" />
</item>
</channel>
</rss>
以上就是xmlslurper解析rss的实例代码的详细内容。