XML_Feed_Parser 0.2.8

Paying projects have kept me away from XML_Feed_Parser for the past couple of months, but today finally brought time to get a new release into shape.

The main focus has been on working through the tests that come with The Universal Feed Parser. I have a (rudimentary) script that converts those tests into PHP and makes some syntax conversion to bring them into line with my package. There’s still some hand tweaking required to get the tests running properly, but for the time being that seems preferable to writing a full lexer.

With those tweaks in place, the package now passes the majority of the Atom 1.0 tests. Along the way I’ve added a few new compatibility features (guid now maps to id in atom, in some cases uses of url/href will automatically map to uri where that’s appropriate), and cleaned up the workings of the __call magic function that does a lot of the dispatching within and between the classes.

Another major addition is the decoding of base64 encoded atom:text constructs.

Hopefully development will pick up speed over the next few weeks. My aim is to have a beta out some time in January.

Tags: , , , , , ,

2 comments

  1. James,

    This is a great addition to the PEAR libraries! I’ve been using it to create a blog aggregator and feed producer. This parser has been a great help!

    I have been aggregating some WordPress 1.5 rss2 feeds, and they use the http://purl.org/rss/1.0/modules/content/ module for encoded content. I changed the RSS2Element class to include the getContent function from the RSS1Element class and changed some of the mapping and it works wonderfully.

    Can you include that in the next release? I don’t know the process of contributing to PEAR projects.

    Thanks,
    Jimmy Zimmerman

  2. Thanks Jimmy. Glad you’re finding it useful.

    If you have a patch I could look at, that’d be great. You could send it to me, but preferable file it as a feature request in the pear bug tracker. Click on the ‘bugs’ tab at http://pear.php.net/package/XML_Feed_Parser