Jakob Voß
and 1 contributors

NAME

PICA::Parser::XML - PICA+ XML parser

VERSION

version 0.14

SYNOPSIS

PICA::Parser::XML is a parser for PICA+ XML records.

    use PICA::Parser::XML;

    my $parser = PICA::Parser::XML->new( $filename );

    while ( my $record_hash = $parser->next() ) {
        # do something        
    }

Arguments

file

Path to file with PICA XML records.

fh

Open filehandle for file with PICA XML records.

string

XML string with PICA XML records.

METHODS

new($filename | $filehandle | $string)

next()

Reads the next record from PICA+ XML input stream. Returns a Perl hash.

_decode()

Deserialize a PICA+ XML record to an array of field arrays.

SEEALSO

PICA::XMLParser, included in the release of PICA::Record implements another PICA+ XML format parser, not aligned with the Catmandu framework.

AUTHOR

Johann Rolschewski <rolschewski@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Johann Rolschewski.

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