/usr/share/doc/libxml-sax-machines-perl/examples/xml_records_to_data_structures is in libxml-sax-machines-perl 0.46-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | use XML::Handler::2Simple;
use XML::SAX::Machines qw( ByRecord );
use IO::Handle; ## Older XML::LibXML versions need this
use Data::Dumper;
$Data::Dumper::Indent = 1;
$Data::Dumper::Terse = 1;
$Data::Dumper::Quotekeys = 1;
ByRecord(
XML::Handler::2Simple->new(
DataHandler => sub {
warn Dumper( $_[1] );
},
)
)->parse_file( \*STDIN );
|