commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin A. Burton" <>
Subject Re: Fwd: RE: feedparser
Date Sun, 24 Oct 2004 07:45:16 GMT
Brad Neuberg wrote:

>Kevin, do you know of a good answer to his question?
>Hope all is well,
>  Brad
Check out org.apache.commons.feedparser.output.  It was designed for 
exactly what you want.

You give it an output stream and then call feed events on it.

For example:

FileOutputStream fos = new FileOutputStream( "/tmp/rss.xml" );

RSS10_OutputFeedParserListener out = new RSS10_OutputFeedParserListener( 
fos );

out.onChannel( null, "My new channel", "", "this is 
a description" );
out.onItem( ... );
out.onItem( ... );

Then you'll have a new RSS 1.0 file in /tmp/rss.xml

The only problem is that I only have a skeleton impl in CVS now.

I want to have output serializers for RSS 1.0/2.0 and Atom.



Use Rojo (RSS/Atom aggregator).  Visit Ask me for an 
invite!  Also see #rojo if you want to chat.

Rojo is Hiring! -

If you're interested in RSS, Weblogs, Social Networking, etc... then you 
should work for Rojo!  If you recommend someone and we hire them you'll 
get a free iPod!
Kevin A. Burton, Location - San Francisco, CA
       AIM/YIM - sfburtonator,  Web -
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message