Skip Menu |

This queue is for tickets about the XML-Atom CPAN distribution.

Report information
The Basics
Id: 4679
Status: resolved
Worked: 5 min
Priority: 0/
Queue: XML-Atom

People
Owner: cpan [...] stupidfool.org
Requestors: ehs [...] pobox.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.04
Fixed in: (no value)



Subject: $item->content() doesn't work
This should help illustrate: use XML::Atom::API; my $api = XML::Atom::API->new(); my $feed = $api->getFeed( 'http://diveintomark.org/xml/atom.xml' ); foreach $entry( $feed->entries() ) { print $entry->title(),"\n"; print $entry->content(),"\n"; } Can't locate object method "getDocumentElement" via package "XML::LibXML::Element" at /usr/local/lib/perl5/site_perl/5.8.2/XML/Atom/Entry.pm line 18
Hi, Thanks for the report... new version (0.041) on its way to CPAN now. BTW, you need to call content->body to get the actual content as of version 0.04. And, XML::Atom does autodiscovery for feeds: use XML::Atom::Feed; use URI; my $feed = XML::Atom::Feed->new(Stream => URI->new('http://diveintomark.org/')); foreach $entry( $feed->entries ) { print $entry->title,"\n"; print $entry->content->body,"\n"; }