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
Returns a list of all registered XML::NewsML_G2::Scheme instances
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, 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.