I've got a need to do some basic RSS handling in a Firefox extension. I
know Firefox already has a native "Live Bookmarks" implementation that
handles everything I need: downloading a feed, getting the titles and links.
Is there a way to just "tap in" to all the already-existing
functionality that the live bookmarks feature provides, and simply dig
out the data for presentation in a slightly different way? I've managed
this much:
var bmSrv=Components
.classes["@mozilla.org/browser/bookmarks-service;1"]
.getService(Components.interfaces.nsIBookmarksService);
var res=bmSrv.createLivemark(
'name', 'http://www.example.com/',
'http://www.example.com/rss', 'description'
);
Which isn't much, actually, but from here, I don't know where to go. It
"works" in that it runs, it appears to trigger an HTTP call to the named
server, and it produces an "nsIRDFResource" object, but I don't know how
to (or if I can) get at the data that may be inside there.
I can't really find any documentation about what format the result of
this function is, or what to do with it.
Thanks in advance!
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom