View on
MetaCPAN
Pieter De Praetere > Datahub-Factory-0.02 > Datahub::Factory::Importer::Adlib

Download:
Datahub-Factory-0.02.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: Datahub-Factory-1.72

NAME ^

Datahub::Factory::Importer::Adlib - Import data from Adlib data dumps

SYNOPSIS ^

    use Datahub::Factory::Importer::Adlib;
    use Data::Dumper qw(Dumper);

    my $adlib = Datahub::Factory::Importer::Adlib->new(
        file_name => '/tmp/export.xml',
        data_path => 'recordList.record.*'
    );

    $adlib->importer->each(sub {
        my $item = shift;
        print Dumper($item);
    });

DESCRIPTION ^

Datahub::Factory::Importer::Adlib uses Catmandu to fetch a list of records from an AdlibXML data dump. It returns an Importer.

PARAMETERS ^

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.

ATTRIBUTES ^

importer

A Importer that can be used in your script.

AUTHOR ^

Pieter De Praetere <pieter at packed.be >

COPYRIGHT ^

Copyright 2017- PACKED vzw

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO ^

Datahub::Factory Catmandu

syntax highlighting: