XML::Atom::Ext::Inline - In-lining Extensions for Atom
Version 0.02
This module implements In-lining extesions for Atom. You can see the RFC draft here: http://tools.ietf.org/html/draft-mehta-atom-inline-01
The following code:
use XML::Atom; use XML::Atom::Ext::Inline; my $feed = XML::Atom::Feed->new(Version => '1.0'); my $parent_feed = XML::Atom::Feed->new(Version => '1.0'); $parent_feed->title('foo bar'); my $inline = XML::Atom::Ext::Inline->new(); $inline->atom($parent_feed); my $link = XML::Atom::Link->new(Version => '1.0'); $link->rel('up'); $link->inline($inline); $feed->add_link($link); print $feed->as_xml();
will produce:
<?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> <link rel="up"> <ae:inline xmlns:ae="http://purl.org/atom/ext/"> <feed> <title>foo bar</title> </feed> </ae:inline> </link> </feed>
Returns an XML::Atom::Feed or XML::Atom::Entry object representing the inline element contents or undef if there is no contents.
undef
If given an argument, adds the feed $feed which must be an XML::Atom::Feed object or $entry which must be XML::Atom::Entry object, into inline element.
Returns the XML::Atom::Namespace object representing our xmlns:ae="http://purl.org/atom/ext/">.
Dmitri Popov, <operator at cv.dp-net.com>
<operator at cv.dp-net.com>
Please report more bugs here: http://github.com/pin/xml-atom-ext-inline/issues
You can find more information and usefull links on project wiki: http://wiki.github.com/pin/xml-atom-ext-inline
Copyright 2009-2010 Dmitri Popov, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install XML::Atom::Ext::Inline, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Atom::Ext::Inline
CPAN shell
perl -MCPAN -e shell install XML::Atom::Ext::Inline
For more information on module installation, please visit the detailed CPAN module installation guide.