On 1/31/2009 8:45 AM, Roman Makurin wrote:
Hi All!

Which is best way to parse(not create) RSS Feeds(0.9, 1.0 and 2.0) in
perl ? I looked through XML::RSS, but it looks like mostly for creating
feeds.

It's also for parsing them. Try

#!/usr/bin/perl

use strict;
use warnings;
use XML::RSS;
use Data::Dumper;

my $parser = new XML::RSS;
my $parsedFeed = $parser -> parse('file.xml');
foreach my $item (@{$parsedFeed -> {'items'}) {
    print Dumper($item);
}

And you'll see the Data-structure you get. (replace "file.xml" with actual file content, though).

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to