We have seen in the previous recipes that JavaFX is well-suited to handle XML data. One of the most pervasive usages of XML is the syndication of data made available through feed formats, such as the RSS and Atom formats. In this recipe, we explore JavaFX's inherent support for the RSS syndication format through the Feed API by building a simple weather reader application using RSS data from Yahoo.
To understand this recipe, you should be familiar with the notion of web content syndication, or web feeds. If not, have a quick look at http://en.wikipedia.org/wiki/Web_feed which provides background information about how feeds are used. You should also take a look at the previous recipe in this chapter, Building RESTful clients with the PullParser API.
In this recipe, we will show you how to parse RSS syndication feeds using JavaFX's RSS Feed API located in the javafx.data.feed.rss
package. For this recipe, you will pull RSS-encoded...