NAME
XML::Atom::Ext::Inline - In-lining Extensions for Atom
VERSION
Version 0.02
SYNOPSIS
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>
USAGE
atom($feed | $entry)
Returns an XML::Atom::Feed or XML::Atom::Entry object representing the inline element contents or undef
if there is no contents.
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.
element_ns
Returns the XML::Atom::Namespace object representing our xmlns:ae="http://purl.org/atom/ext/">.
AUTHOR
Dmitri Popov, <operator at cv.dp-net.com>
BUGS
Please report more bugs here: http://github.com/pin/xml-atom-ext-inline/issues
SUPPORT
You can find more information and usefull links on project wiki: http://wiki.github.com/pin/xml-atom-ext-inline
COPYRIGHT & LICENSE
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.