Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a well supported feed generation library for Java?

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?

like image 924
Steve Kallestad Avatar asked Jun 12 '13 03:06

Steve Kallestad


1 Answers

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.

like image 104
Steffen Nieuwenhoven Avatar answered Oct 05 '22 15:10

Steffen Nieuwenhoven