The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

XML::NewsML_G2::Scheme_Manager - hold all XML::NewsML_G2::Scheme instances

SYNOPSIS

    my $sm = XML::NewsML_G2::Scheme_Manager->new(desk => $s1, hltype => $s2, svc => $s3);

ATTRIBUTES

crel

Scheme for company relations

desk

Scheme for editorial desk

ean

Scheme for european/international article number

geo

Scheme for location information

hltype

Scheme for type of headline

ind

Scheme for content indicators

isbn

Scheme for international standard book number

org

Scheme for organisations

role

Scheme for editorial note roles

svc

Scheme for editorial service

topic

Scheme for topics

isrol
nprov
ninat
stat
sig
iso3166_1a2
genre
isin
medtop

METHODS

get_all_schemes

Returns a list of all registered XML::NewsML_G2::Scheme instances

add_qcode

Add a qcode attribute of the given scheme to the XML element:

    $scheme_manager->add_qcode($element, 'ninat', 'text');

If the schema does not provide a catalog or URI, creating a qcode is not possible, and this method will die.

add_qcode_or_literal

Same as add_qcode, but will create a literal attribute if creating a qcode is not possible.

add_role

If the scheme is defined, add a role attribute to the given XML element. Else, do nothing.

    $scheme_manager->add_role($element, 'isrol', 'originfo');

AUTHOR

Philipp Gortan <philipp.gortan@apa.at>

LICENCE AND COPYRIGHT

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

See XML::NewsML_G2 for the license.