O'Reilly logo

Sams Teach Yourself Java™ in 24 Hours, Sixth Edition by Rogers Cadenhead

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required