XML::NewsML_G2::Scheme_Manager - hold all XML::NewsML_G2::Scheme instances
my $sm = XML::NewsML_G2::Scheme_Manager->new(desk => $s1, hltype => $s2, svc => $s3);
Scheme for company relations
Scheme for editorial desk
Scheme for european/international article number
Scheme for location information
Scheme for type of headline
Scheme for content indicators
Scheme for international standard book number
Scheme for organisations
Scheme for editorial note roles
Scheme for editorial service
Scheme for topics
Scheme for info source role
Scheme for news provder
Scheme for news item nature
Scheme for document state
Scheme for signals
Scheme for country codes
Scheme for genres
Scheme for ISIN codes
Scheme for media topics
Scheme for renditions
Scheme for colorspaces
Scheme for audio channels
Scheme for groups within a package
Scheme for package group mode
Scheme for copyright holder
Returns a list of all registered XML::NewsML_G2::Scheme instances
Build a qcode of the given scheme
$scheme_manager->build_qcode('ninat', 'text');
If the schema does not provide a catalog or URI, creating a qcode is not possible, and this method will return undef.
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.
Same as add_qcode, but will create a literal attribute if creating a qcode is not possible.
add_qcode
literal
If the scheme is defined, add a role attribute to the given XML element. Else, do nothing.
$scheme_manager->add_role($element, 'isrol', 'originfo');
Philipp Gortan <philipp.gortan@apa.at>
<philipp.gortan@apa.at>
Copyright (c) 2013-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.