Reading RSS Syndication Feeds
There are hundreds of XML dialects out there representing data in a platform-independent, software-independent manner. One of the most popular XML dialects is RSS, a format for sharing headlines and links from online news sites, weblogs, and other sources of information.
RSS makes web content available in XML form, perfect for reading in software, in web-accessible files called feeds. RSS readers, called news aggregators, have been adopted by several million information junkies to track all their favorite websites. There also are web applications that collect and share RSS items.
The hard-working Builder
class in the nu.xom
package can load XML over the Internet from any URL:
String rssUrl = "http://feeds.drudge.com/retort" ...
Get Sams Teach Yourself Java™ in 24 Hours, Sixth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.