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.
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.
Copyright (c) 2014, APA-IT. All rights reserved.
See XML::NewsML_G2 for the license.