The Artima Developer Community
Sponsored Link

Agile Buzz Forum
A Basic RSS/Atom Handling Package

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
A Basic RSS/Atom Handling Package Posted: Jun 11, 2006 6:14 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: A Basic RSS/Atom Handling Package
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

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 :)

Read: A Basic RSS/Atom Handling Package

Topic: That's too much goodness, make it stop Previous Topic   Next Topic Topic: Bizarro Spam

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use