XML::Atom::Ext::Threading - XML::Atom extension for Atom Threading Extensions (RFC 4685)
use XML::Atom::Entry; use XML::Atom::Link; use XML::Atom::Ext::Threading; my $entry = XML::Atom::Entry->new; # "in-reply-to" extension element my $reply = XML::Atom::Ext::Threading::InReplyTo->new; $reply->ref('tag:example.org,2005:1'); $reply->href('http://www.example.org/entries/1'); $reply->type('application/xhtml+xml'); $entry->in_reply_to($reply); # "replies" link relation my $link = XML::Atom::Link->new; $link->rel('replies'); $link->type('application/atom+xml'); $link->href('http://www.example.org/mycommentsfeed.xml'); $link->count(10); $link->updated('2005-07-28T12:10:00Z'); $entry->add_link($link); # "total" extension element $entry->total(10);
returns the Atom Threading namespace, http://purl.org/syndication/thread/1.0
http://purl.org/syndication/thread/1.0
NAKAGAWA Masaki <masaki@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
XML::Atom, http://tools.ietf.org/html/rfc4685
To install XML::Atom::Ext::Threading, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Atom::Ext::Threading
CPAN shell
perl -MCPAN -e shell install XML::Atom::Ext::Threading
For more information on module installation, please visit the detailed CPAN module installation guide.