Skip to:
The example for the Yahoo weather module does not work. To reproduce:
URL url = new URL("http://xml.weather.yahoo.com/forecastrss/ITXX0090.xml");SyndFeed feed = null;try {feed = new SyndFeedInput().build(new XmlReader(url));} catch (Exception e) { }
YWeatherFeedModule yfeed = (YWeatherFeedModule) feed.getModule( YWeatherFeedModule.URI );// yFeed is NULL here
The problem is that there are no entries in rome.properties:
rss_2.0.feed.ModuleParser.classes=com.sun.syndication.feed.module.yahooweather.io.WeatherModuleParserrss_2.0.item.ModuleParser.classes=com.sun.syndication.feed.module.yahooweather.io.WeatherModuleParserrss_2.0.feed.ModuleGenerator.classes=com.sun.syndication.feed.module.yahooweather.io.WeatherModuleGeneratorrss_2.0.item.ModuleGenerator.classes=com.sun.syndication.feed.module.yahooweather.io.WeatherModuleGenerator
See attached rome.properties and the fixed rome-modules-1.1.jar
The example for the Yahoo weather module does not work. To reproduce:
URL url = new URL("http://xml.weather.yahoo.com/forecastrss/ITXX0090.xml");
SyndFeed feed = null;
try {
feed = new SyndFeedInput().build(new XmlReader(url));
} catch (Exception e) { }
YWeatherFeedModule yfeed = (YWeatherFeedModule) feed.getModule( YWeatherFeedModule.URI );
// yFeed is NULL here