Datahub::Factory::Importer::MSK - Import data from Adlib data dumps as used by the MSK
use Datahub::Factory::Importer::MSK; use Data::Dumper qw(Dumper); my $msk = Datahub::Factory::Importer::MSK->new( file_name => '/tmp/msk.xml', data_path => 'recordList.record.*' ); $msk->importer->each(sub { my $item = shift; print Dumper($item); });
Datahub::Factory::Importer::MSK uses Catmandu to fetch a list of records from an AdlibXML data dump generated by the MSK. It returns an Importer.
file_name
Location of the Adlib XML data dump. It expects AdlibXML.
data_path
Optional parameter that indicates where the records are in the XML tree. It uses Catmandu::Fix syntax. By default, records are in the recordList.record.* path.
recordList.record.*
importer
A Importer that can be used in your script.
Pieter De Praetere <pieter at packed.be >
Copyright 2017- PACKED vzw
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Datahub::Factory Datahub::Factory::Adlib Catmandu
To install Datahub::Factory::Arthub, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Datahub::Factory::Arthub
CPAN shell
perl -MCPAN -e shell install Datahub::Factory::Arthub
For more information on module installation, please visit the detailed CPAN module installation guide.