• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

5. RSS 1.0 > 5.6. Creating RSS 1.0 Feeds

Creating RSS 1.0 Feeds

Despite the additional complexity of the RDF attributes, the methods for creating RSS 1.0 feeds are similar to those used to create RSS 2.0 feeds (discussed in Chapter 4).

Creating RSS 1.0 with Perl

The XML::RSS module used in Chapter 4 also works for RSS 1.0, with a few changes to the scripts. The script in Example 5-8 produces the feed shown, in turn, in Example 5-9.

Example 5-8. Creating RSS 1.0 with XML::RSS
#!/usr/bin/perl -w

use XML::RSS;

my $rss = new XML::RSS( version => '1.0' );

$rss->channel(
    title       => "The Title of the Feed",
    link        => "http://www.oreilly.com/example/",
    description => "The description of the Feed",
    dc          => {
        date      => "2000-08-23T07:00+00:00",
        subject   => "Linux Software",
        creator   => 'scoop@freshmeat.net',
        publisher => 'scoop@freshmeat.net',
        rights    => "Copyright 1999, Freshmeat.net",
        language  => "en-us",
    },
);

$rss->image(
    title => "Oreilly",
    url   => "http://meerkat.oreillynet.com/icons/meerkat-powered.jpg",
    link  => "http://www.oreilly.com/example/",
    dc    => { creator => "G. Raphics (graphics at freshmea....

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint