Andrew Shitov > XML-NewsML-0.5 > XML::NewsML

Download:
XML-NewsML-0.5.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.5   Source  

NAME ^

XML::NewsML - Simple interface for creating NewsML documents

SYNOPSIS ^

        use XML::NewsML;

        my $newsml = new XML::NewsML(
                provider        => 'example.com',
                timezone        => '+0300',
        );

        $newsml->addNews(
                datetime        => '20070913T102417',
                title           => 'News Title',
                keywords        => 'keyword line, first',
                content         => 'News Content',
        );

        $newsml->addNews(
                title           => 'News Title 2',
                keywords        => 'keyword line, second',
                content         => 'News Content 2',
                image           => '/img/x.jpg',
        );

        $newsml->addNews(
                datetime        => undef,
                title           => 'News Title 3',
                keywords        => 'alpha, beta, gamma',
                content         => 'News Content 2',
                image           => ['/img/y.jpg', '/img/z.png'],
        );

ABSTRACT ^

XML::NewsML helps creating very simple NewsML documents which contain text combined with common web graphics.

DESCRIPTION ^

XML::NewsML supports only a tiny part of the entire specification published at www.newsml.org. Anyhow it provides valid XML code that may be used for news exchange.

AUTHOR ^

Andrew Shitov, <andy@shitov.ru>

COPYRIGHT AND LICENSE ^

XML::NewsML module is a free software. You may redistribute and (or) modify it under the same terms as Perl.

syntax highlighting: