8 print STDERR "Usage: $0 target\n";
12 my $conn = new ZOOM::Connection($ARGV[0]);
13 $conn->option(preferredRecordSyntax => "xml");
14 $conn->option(elementSetName => "zebra::data");
15 my $rs = $conn->search_pqf('@attr 1=_ALLRECORDS @attr 2=103 ""');
18 print "$0: dumping $n records\n";
19 foreach my $i (1..$n) {
21 print " $i/$n (", int($i*100/$n), "%)\n" if $i % 50 == 0;
22 my $rec = $rs->record($i-1);
23 my $xml = $rec->render();
28 print " $n/$n (100%)\n" if $n % 50 != 0;