|
NAMEXML::Atom::Stream - A client interface for AtomStream SYNOPSIS use XML::Atom::Stream;
my $url = "http://updates.sixapart.com/atom-stream.xml";
my $client = XML::Atom::Stream->new(
callback => \&callback,
reconnect => 1,
debug => 1,
timeout => 30,
);
$client->connect($url);
sub callback {
my($atom) = @_;
# $atom is a XML::Atom::Feed object
}
DESCRIPTIONXML::Atom::Stream is a consumer of AtomStream. It connects to Atom stream, the never ending Atom feed and parses the feed by SAX pull parser. Whenever it retrieves a new feed, your callback function will be invoked. METHODS
AUTHORTatsuhiko Miyagawa <miyagawa@bulknews.net> with tips from Benjamin Trott and Brad Fitzpatrick. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSOXML::Atom, XML::Atom::Filter, http://www.livejournal.com/users/brad/2143713.html
|