XML::NewsML_G2::Writer - base class for XML DOM tree creation conforming to NewsML G2
my $w = XML::NewsML_G2::Writer_2_12->new (news_item => $ni, scheme_manager => $sm); my $p = $w->create_element('p', class => 'main', _text => 'blah'); my $dom = $w->create_dom();
This module acts as a NewsML-G2 version-independent base class. Instead of using this class, use the most current subclass, e.g. XML::NewsML_G2::Writer_2_12.
XML::NewsML_G2::News_Item instance used to create the output document
Encoding used to create the output document, defaults to utf-8
String used in output as the generator program name
XML::NewsML_G2::Scheme_Manager instance used to create qcodes
XML::LibXML::Document instance used to create the output document
XML Namespace of NewsML G2
XML Namespace of XHTML
Specified by subclass.
URL of the G2 catalog, specified by subclass.
Reference to a hash of schemes that are covered by the G2 catalog. If the value is undefined, it defaults to the name of the scheme.
Helper method that creates XML elements, e.g. to be used in the paragraphs element of the XML::NewsML_G2::News_Item.
paragraphs
Returns the XML::LibXML::Document element containing the requested output.
Philipp Gortan <philipp.gortan@apa.at>
<philipp.gortan@apa.at>
Copyright (c) 2013, 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.