File: 06_output.pl

package info (click to toggle)
libxml-dt-perl 0.62-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 380 kB
  • sloc: perl: 1,379; xml: 438; makefile: 16
file content (18 lines) | stat: -rw-r--r-- 435 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl
use XML::DT ;
my $filename = shift;

# Variable Reference
#
# $c - contents after child processing
# $q - element name (tag)
# %v - hash of attributes

%handler=(
#    '-outputenc' => 'ISO-8859-1',
#    '-default'   => sub{"<$q>$c</$q>"},
     'a' => sub{ }, # 1 occurrences;
     'b' => sub{ }, # 3 occurrences; attributes: title
     'c' => sub{ }, # 6 occurrences; attributes: title
);
print dt($filename,%handler);