Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 1b764540ac47a9813abe0ca5c20da4ab > files > 24

perl-XML-DT-0.630.0-2.mga4.noarch.rpm

#!/usr/bin/perl
use XML::DT ;
my $filename = 'ex5.xml';

# tests if exist @* atribute or not(@*)

%handler=(
#    '-outputenc' => 'ISO-8859-1',
#    '-default'   => sub{ ""},
#     'ccc' => sub{"$q:$c"},
     '//*[not(@*)]' => sub{print "$c\n";toxml},
#     'ddd' => sub{"$q:$c"},
#     'bbb' => sub{"$q:$c"},
#     'eee' => sub{"$q:$c"},
);
pathdt($filename,%handler);
print "\n";