XML::NewsML_G2::Writer::News_Item - create DOM tree conforming to NewsML-G2 for News Items
my $w = XML::NewsML_G2::Writer::News_Item->new (news_item => $ni, scheme_manager => $sm, g2_version => 2.15); my $p = $w->create_element('p', class => 'main', _text => 'blah'); my $dom = $w->create_dom();
This module implements the creation of a DOM tree conforming to NewsML-G2 for News Items. Depending on the version of the standard specified, a version-dependent role will be applied. For the API of this module, see the documentation of the superclass XML::NewsML_G2::Writer.
XML::NewsML_G2::News_Item instance used to create the output document
Philipp Gortan <philipp.gortan@apa.at>
<philipp.gortan@apa.at>
Copyright (c) 2013-2014, APA-IT. All rights reserved.
See XML::NewsML_G2 for the license.
To install XML::NewsML_G2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::NewsML_G2
CPAN shell
perl -MCPAN -e shell install XML::NewsML_G2
For more information on module installation, please visit the detailed CPAN module installation guide.