-
-
30 Nov 2017 10:26:37 UTC
- Distribution: Catmandu-LIDO
- Module version: 0.10
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (0)
- Testers (1023 / 2 / 0)
- Kwalitee
Bus factor: 1- 92.77% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (47.16KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
Catmandu::Importer::LIDO - A LIDO XML importer
SYNOPSIS
# From the command line $ catmandu convert LIDO to YAML < ex/lido.xml # From Perl use Catmandu; my $importer = Catmandu->importer('LIDO',file => 'ex/lido.xml'); my $n = $importer->each(sub { my $hashref = $_[0]; # ... });
DESCRIPTION
This is a Catmandu::Importer for converting LIDO data (an XML Schema for Contributing Content to Cultural Heritage Repositories).
CONFIGURATION
- file
-
Read input from a local file given by its path. Alternatively a scalar reference can be passed to read from a string.
- fh
-
Read input from an IO::Handle. If not specified, Catmandu::Util::io is used to create the input stream from the
file
argument or by using STDIN. - encoding
-
Binmode of the input stream
fh
. Set to:utf8
by default. - fix
-
An ARRAY of one or more fixes or file scripts to be applied to imported items.
- size
-
Number of items. If not set, an endless stream is imported.
METHODS
Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited.
SEE ALSO
Module Install Instructions
To install Catmandu::LIDO, copy and paste the appropriate command in to your terminal.
cpanm Catmandu::LIDO
perl -MCPAN -e shell install Catmandu::LIDO
For more information on module installation, please visit the detailed CPAN module installation guide.