in reply to How can I write both RSS and Atom

my %feeds; for my $type ( qw( RSS Atom ) ) { my $feed = XML::Feed->new( $type ); $feed->title( $title ); $feed->link( $site_prefix ); $feed->description( $description ); $feeds{ $type } = $feed; }

Update: Fixed case typo (ATOM to Atom).

Replies are listed 'Best First'.
Re^2: How can I write both RSS and Atom
by fayland (Acolyte) on Dec 12, 2005 at 15:30 UTC
    Thanks. but I find that XML::Atom only create 0.3 Atom, does any module create the version='1.0' Atom?
    or any suggestion when you create your Atom/RSS feeds?
      Hi fayland,

      Which version of XML::Atom do you have?
      As of version 0.13_01 (dated 2005.09.13) you can pass new(Version => 1.0) to create an Atom version 1.0 feed. Check out the 'Changes' file that comes with the module for more information.

      Hope this helps..

      Martin

        Woo, thanks.

        Yet the document is NOT so clear, I cann't find it.

        :-)