NAME

XML::NewsML_G2::Group - a group of news items (or other groups)

SYNOPSIS

my $group = XML::NewsML_G2::Group->new(role => 'slide');

$group->add_item($news_item);
$group->add_item($news_item_for_picture);

DESCRIPTION

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, ...

ATTRIBUTES

role

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.

items

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.

mode

A group can have one of the following modes: bag, sequential, alternative. Defaulto to "bag".

METHODS

add_item

Takes one or more items to be added to this group.

AUTHOR

Philipp Gortan <philipp.gortan@apa.at>

LICENCE AND COPYRIGHT

Copyright (c) 2014, APA-IT. All rights reserved.

See XML::NewsML_G2 for the license.