a work on process

Viewing posts tagged: XML_Feed_Parser

Feed Parser: Enclosures and RSS1 improvements

7 September 2005 (9:45 pm)

By James Stewart
Filed under: Announcements
Tagged: , , , , ,

There’s a new version of XML_Feed_Parser up on the development site. 0.1.1devel adds support for enclosures in Atom and RSS2, and for getElementById for RSS1.0.

Next on the list are RSS modules, which will allow me to extend enclosures support to RSS1 as well as make the whole thing more flexible.

Recommend this post:

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

 

XML_Feed_Parser Draft Proposal

4 September 2005 (2:26 pm)

By James Stewart
Filed under: Announcements
Tagged: , , , , , ,

Yesterday I added basic RSS1 support to XML_Feed_Parser and began the process of preparing a PEPR proposal to have it included in PEAR. I still need to get the various pages about the module in sync, but the code and a rough to-do list are currently available on my test server.

My key desire is to add in support for RSS1 modules and RSS2 namespaces so that I can begin to use it to get at richer content than the base RSS1-spec allows. I’ll probably add some mappings for some of the more common extensions and then define a way for users to interact with those that are less common. If anyone has any preferred ways of doing that, feel free to suggest them in the comments.

Recommend this post:

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

 

Whatever happened to the feed parser?

13 August 2005 (2:51 pm)

By James Stewart
Filed under: Announcements
Tagged: , , , , ,

It’s been quite some time since I last wrote about the feed parser I’ve been working on. I actually had a piece prepared a couple of weeks ago, but before I posted it some discussion arose on pear-dev about possible feed parser projects and so I have been waiting to see what became of that. That conversation has died down, so it feels like time for a summary of progress to date.

Since I last wrote I have rewritten the package from scratch with a new design. It was quickly becoming overly complex to maintain appropriate strictness while parsing all feed types in one class, so I’ve broken the design into a general class which manages the interface, and specific classes for each feed type.

I’ve so far implemented support for Atom 1.0 and RSS 2.0 with some mappings so that a few common elements will behave the same way between both types. In general, I’m using Atom as the normative feed type. Atom 0.3 is handled, but a warning is sent and a few features (notably getEntryById) won’t work because of the changed namespace.

The discussion on pear-dev focussed on two key questions. The first was whether a generalised feed package (reading and writing) was preferable to single-purpose packages, and the other how comprehensive support for different formats should be. I’m increasingly convinced that separate packages for parsing and creating feeds are preferable. Many of us use templating systems to generate feeds and so would not need the added overhead of feed writing classes, and focussing on one task allows for maximum efficiency.

The more time I’ve spent with the RSS 2.0 spec, the more convinced I am that it is important to not lose sight of the specifics of the different formats in the name of abstraction. The Atom spec is far clearer and provides for much more effectively (imho) structured information than RSS 2.0. It would be a great shame to lose any of that. As far as possible I’ve focussed on providing a consistent surface for access to common elements, without denying access to more specific and detailed content.

There’s still quite a bit to do, but I’m beginning to use this code in my regular development, so progress may get a little faster. A tarball of the current version is available here.

Recommend this post:

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

 

XML_Feed_Parser

12 July 2005 (9:13 am)

By James Stewart
Filed under: Announcements
Tagged: , , , , ,

It’s been a while since I wrote anything here, and I’m unlikely to return to regular posting for a while, but there are a few things that deserve some attention.

Unfortunately my work schedule and a few more urgent voluntary projects have pulled me away from working on the Atom/RSS parser I wrote about recently, but I have done a little tinkering and hope to return to it before long. The next big change will be pulling each feed type out into its own class to make the package more easily extensible, and at that point I hope to propose it for inclusion in PEAR.

Also, Sam Ruby (IIRC) has begun preparing some Atom 1.0 test cases and I hope to be able to start working on those before long. Since so much software currently supports Atom 0.3 I may add in backwards compatibility at some stage, but the key focus will be on Atom 1.0 since that is to be the definitive standard.

More soon…

Recommend this post:

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

 
« Previous Page