I've begun working on [what I believe to be] an extraordinary class  
to top all my others. But I'm also trying to gauge it's usefulness,  
before I get too in-depth.

In this age of "Web 2.0" and syndicate everything, I've started  
working on a set of classes which can not only parse RSS feeds into  
REALbasic objects, but parse nearly *any* feed into the same objects  
- and also create any kind of feed. And lastly, convert feeds simply  
by setting a property and asking it to create the XML.

So as a brief example, (I've named the classes RSSxxxx), to create a  
feed one would do something like

dim r as new rssfeed
r.title = "My New Feed"
r.linkurl = "http://www.feeds.com/";
r.lastupdated = new date

// create atom 1.0 feed
r.format = rssfeed.kformatatom10
msgbox r.asxml.tostring

// create rss 2.0 feed
r.format = rssfeed.kformatrss20
msgbox r.asxml.tostring

And parsing a feed would be as simple as downloading it using an  
HTTPSocket and then sending it to RSSModule.Parse:

dim r as rssfeed
r = RSSModule.Parse(myHTTPContent)
if r <> nil then
   msgbox "You downloaded feed " + r.title
end

I have not found something similar to this for RB yet, so the simple  
question: is this wanted?

--
Thom McGrath, <http://www.thezaz.com/>
"You realize you've created God in your own image when God hates all  
the same people you do."


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to