File: esis-test.pl

package info (click to toggle)
libxml-perl 0.08-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 488 kB
  • sloc: perl: 1,961; xml: 301; sh: 31; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 377 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use XML::ESISParser;
use XML::Handler::Sample;

if ($ARGV[0] eq '--sgml') {
    push (@additional_args, IsSGML => 1);
    shift @ARGV;
}

if ($#ARGV != 0) {
    die "usage: esis-test FILE\n";
}
$file = shift @ARGV;

$my_handler = XML::Handler::Sample->new;

XML::ESISParser->new->parse(Source => { SystemId => $file },
			    Handler => $my_handler,
			    @additional_args);