All it takes to read a syndication feed using ROME are the following 2 lines of code

SyndFeedInput input = new SyndFeedInput();
SyndFeed feed = input.build(new XmlReader(feedUrl));

ROME includes parsers to process syndication feeds into SyndFeed instances. 

The SyndFeedInput class handles the parsers using the correct one based on the syndication feed being processed. 

The developer does not need to worry about selecting the right parser for a syndication feed, the SyndFeedInput will take care of it by peeking at the syndication feed structure.


Comments