XML::NewsML_G2::Group - a group of news items (or other groups)
my $group = XML::NewsML_G2::Group->new(role => 'slide'); $group->add_item($news_item); $group->add_item($news_item_for_picture);
This module is used to group news items within a package item. A group can contain any number of news items, as well as other groups. The role is used to inform the receiver of the package item which kind of content the group contains - the main content of a story, a sidebar, a slideshow, ...
The role of this group, within the package item. The attribute is required by the NewsML-G2 specification, but currently, IPTC does not provide a CV for it, so you will have to define a XML::NewsML_G2::Scheme for yourself and register it with the XML::NewsML_G2::Scheme_Manager.
Reference to an array of items contained in this group. Each item must be a XML::NewsML_G2::News_Item or a XML::NewsML_G2::Group.
A group can have one of the following modes: bag, sequential, alternative. Defaulto to "bag".
Takes one or more items to be added to this 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.