Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • First – please, please emit Atom, not RSS. It is much better tech than RSS 2.0, and just as widely supported. If you’re writing new code to consume feeds, you need to support both formats (and more besides), but if you’re writing new code to produce feeds, there’s no technical reason to emit anything but Atom.

    As for generating XML using templates: that isn’t difficult if you know what you’re doing, but there is a whole host of niggly little issues that you need to be aw

    • First – please, please emit Atom, not RSS. It is much better tech than RSS 2.0, and just as widely supported.

      I understand that people are pretty opinionated on the RSS vs Atom debate (and there may be a "right" side... I admit to not having followed it too closely), but RSS is simply more recognized as a term for a data feed. I have no problems with emitting both though.

      As for generating XML using templates: that isn’t difficult if you know what you’re doing, but there is a whole hos

      • RSS is simply more recognized as a term for a data feed

        Sure. So just call the Atom feed “RSS”. Nobody will notice, and those who do won’t care. (I sure won’t.) Works for “Kleenex”.

        I can emit Atom or RSS just by using a different template

        The devil is in the “just” – writing a different template is no easier than writing code to use another module.

        Btw, if you choose to take the template route, you’ll still want to pick Atom – it

        • Alright I'm convinced. It doesn't make much sense to emit both RSS and Atom, so I went with Atom after doing a little reading comparing the 2. And since XML::Atom::SimpleFeed is so small, and didn't have any dependencies other than Carp::Clan I went ahead and used it instead of doing a templated approach.

          Thanks for the heads up about both points.