package Catmandu::Importer::SRU::Parser::simple; use strict; use XML::LibXML::Simple (); use Moo; our $VERSION = '0.430'; has xmlsimple => (is => 'ro', default => sub {XML::LibXML::Simple->new}); sub parse { my ($self, $record) = @_; $record->{recordData} = $self->xmlsimple->XMLin( $record->{recordData}->toString, KeepRoot => 1, NsStrip => 1 ); $record; } 1; __END__ =head1 NAME Catmandu::Importer::SRU::Parser::simple - parse SRU records as simple XML =head1 SYNOPSIS This default record parser of L transforms the SRU response records field C with L. Namespaces are stripped by default. =head1 SEE ALSO Use L for order-preserving or mixed-content XML. =head1 AUTHOR Patrick Hochstenbach, C<< >> Jakob Voss C<< voss@gbv.de >> =cut