net.sf.jpluck.feed.Feed feed = null;
if (rootName.equals("feed")) {
// Atom feed
feed = new AtomFeed(dom);
} else {
feed = new RSSFeed(dom);
}
FeedFormatter formatter = new FeedFormatter(feed, settings);
boolean generateBookmarks = ClientConfiguration.getDefault().isGenerateBookmarks();
if (settings.isUsePageStructure()) {
FeedItem[] items = feed.getItems();