logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

MAB2::Parser::XML - MAB2 XML parser

Arguments

       "file"
           Path to file with MAB2 XML records.

       "fh"
           Open filehandle for file with MAB2 XML records.

       "string"
           XML string with MAB2 XML records.

Author

       Johann Rolschewski <jorol@cpan.org>

Methods

new($filename|$filehandle|$string)next()
       Reads the next record from MAB2 XML input stream. Returns a Perl hash.

   _decode($record)
       Deserialize a MAB2 XML record to an an ARRAY of ARRAYs.

Name

       MAB2::Parser::XML - MAB2 XML parser

Seealso

       Catmandu::Importer::MAB2.

Synopsis

       MAB2::Parser::XML is a parser for MAB2 XML records.

           use MAB2::Parser::XML;

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

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

See Also