RSS

This style of distributing XML content is particularly common on news sites that distribute their headlines. Many use a standard format called RSS to do this. Example 2.4 is one example RSS file from Luke Tymowski's QubeQuorner on July 16, 2001. All you need to know is the URL where the constantly updated file is kept. All you need to send to the server is a request for this file.

Example 2.4. An RSS 0.91 Document
 <?xml version="1.0"?> <!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd" > <rss version="0.91"> <channel> <title>QubeQuorner</title> <link>http://q.seeto.com</link> <description> A weblog for both the Sun Qube and Linux/BSD users </description> <language>en</language> ...

Get Processing XML with Java™: A Guide to SAX, DOM, JDOM, JAXP, and TrAX 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.