XML::Atom::Feed - parsing at all?
am 20.01.2008 23:04:25 von RJ NewtI'm trying to parse up a feed but XML::Atom::Feed doesn't seem to
recognize that anything at all is in the XML string I'm feeding to
it. Here's a complete example of how it is not working:
#!/usr/bin/perl -w
use strict;
use XML::Atom::Feed;
# variables
my ($xml, $feed, @entries);
# feed example taken directly from RFC 4287
# see http://tools.ietf.org/html/rfc4287
$xml = <<'(RAW)';
(RAW)
$feed = XML::Atom::Feed->new(\$xml);
$feed or die $!;
@entries = $feed->entries();
print 'feed count: ', scalar(@entries), "\n";
print 'version: ', $feed->version, "\n";
Here's the output:
feed count: 0
version:
It appears to have no entries and no version. No errors are
displayed. Any ideas what I'm doing wrong?