smalltalk

A Basic RSS/Atom Handling Package

June 11, 2006 20:45:58.661

I've had RSS/Atom handling as part of BottomFeeder, but I've never split it out before. There's some community work going on for STIC that calls for having a separate package though, so I just split out Bundle Syndication-Handling. It's in the public store, and executing the following code:


doc := Constructor  
	documentFromURL: 'http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml' 
	forceUpdate: true 
	useMaskedAgent: false.
cls := Constructor determineClassToHandle: doc content.
target := cls objectForData.
feed := cls 
	processDocument: doc content
	from: 'http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml' 
	into: target.


Will result in an RSSFeed domain object (with an appropriate set of Items. There's still work to be done, and I'm sure that there are some lingering BottomFeeder dependencies in there. Help on this will be gratefully accepted :)

 Share Tweet This
-->