The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

SYNOPSIS

    use PICA::Parser::XML;

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

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

METHODS

new( $input )

Initialize parser to read from a given XML file, handle (e.g. IO::Handle), string reference, or XML string.

next

Reads the next PICA+ record. Returns a hash with keys _id and record.

next_record

Reads the next PICA+ record. Returns 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.