XML::NewsML - Simple interface for creating NewsML documents


XML-NewsML documentation  | view source Contained in the XML-NewsML distribution.

Index


SYNOPSIS

Top

	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

Top

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

DESCRIPTION

Top

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

Top

Andrew Shitov, <andy@shitov.ru>

COPYRIGHT AND LICENSE

Top


XML-NewsML documentation  | view source Contained in the XML-NewsML distribution.