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 = "" ...

Get Sams Teach Yourself Java™ in 24 Hours, Sixth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.