Catmandu::Importer::SRU::Parser::struct - transform SRU responses into structured XML records
my $importer = Catmandu::Importer::SRU->new( base => $base, query => $query, parser => 'struct' );
Each SRU response record will be transformed into order-preserving, structured XML as defined by XML::Struct.
Options of XML::Struct::Reader are not supported. As workaround wrap the reader as following, if needed:
my $reader = XML::Struct::Reader->new( %options ); my $importer = Catmandu::Importer::SRU->new( base => $base, query => $query, parser => sub { $reader->readDocument( XML::LibXML::Reader->new( string => $_[0]->{recordData} ) ); }, );
Jakob Voß voss@gbv.de
voss@gbv.de
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Voß'. Assuming UTF-8
To install Catmandu::SRU, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::SRU
CPAN shell
perl -MCPAN -e shell install Catmandu::SRU
For more information on module installation, please visit the detailed CPAN module installation guide.