PICA-Data
view release on metacpan or search on metacpan
t/20-parser.t view on Meta::CPAN
};
# read from string reference
$record = pica_parser($type, \$data)->next;
is $record->{record}[6][7], 'æ³ç»çº¬ä¸»ç¼;',
'Unicode from string reference';
}
# TODO: dump.dat, bgb.example, sru_picaxml.xml
# test XML with BOM
my $xml
= q{<record xmlns="info:srw/schema/5/picaXML-v1.0"><datafield tag="003@"><subfield code="0">1234â¬</subfield></datafield></record>};
my $record = pica_parser(xml => $xml)->next;
is_deeply $record->{record}, [['003@', '', '0', '1234â¬']],
'xml from string';
note 'XML with namespace';
$xml = <<XML;
<p:record xmlns:p="info:srw/schema/5/picaXML-v1.0">
( run in 0.550 second using v1.01-cache-2.11-cpan-e9daa2b36ef )