9

I'm looking to build a feed generator for RSS and Atom feeds.

I've been looking around for a library that will generate a wide variety of formats (RSS .9 through whatever is current, and Atom .3 through whatever is current).

I'd rather not look through the specs and try recreating the wheel, but the libraries I've found so far for generating feeds are either not very robust (only support a specific format/version) or look to be poorly supported or abandoned projects.

Is there a good library out there?

Dan Lowe
  • 51,713
  • 20
  • 123
  • 112
Steve Kallestad
  • 3,484
  • 2
  • 23
  • 31

3 Answers3

4

RSS is just an XML file! So you can use every XML writer out there. Here is an example using "Java Stax XML". At point 5 you see the creation of an example xml file, showing you the correct syntax of a valid RSS feed file.

2

Looks like Apache Abdera is new and supported.

The goal of the Apache Abdera project is to build a functionally-complete, high-performance implementation of the IETF Atom Syndication Format (RFC 4287) and Atom Publishing Protocol (RFC 5023) specifications.

In past ROME was popular, but doesn't look like there have been anything released recently.

Bill Lynch
  • 80,138
  • 16
  • 128
  • 173
Hubert
  • 2,273
  • 1
  • 19
  • 14
0

Trye feed4j. feed4j is a feed parser library for the Java 2 platform

Sudheej
  • 1,873
  • 6
  • 30
  • 57