XML::NewsML_G2::Package_Item - a package of news items
my $pi = XML::NewsML_G2::Package_Item->new (language => 'de', provider => $prov_apa); $pi->add_to_root_group($text_item, $pic_item);
A package item is a collection of news items, that are published together. The structure of packages is flexible to support nested groups of items - please see the NewsML-G2 specification for details.
Each package item is built up by one root group, which is an instance of XML::NewsML_G2::Group.
Upon creation of the package item, a new, empty XML::NewsML_G2::Group is created and stored in the root_group attribute.
root_group
The root group needs a role that specifies the type of content the package contains. Defaults to 'main'.
All groups are identified by IDs. This attribute is used to name the root group - all other groups are named automatically. Defaults to 'root_group'.
Use this method to add news items and groups to the root group.
Philipp Gortan <philipp.gortan@apa.at>
<philipp.gortan@apa.at>
Copyright (c) 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.