PERL
69
xml pl
Guest on 21st July 2022 01:23:23 AM
use bytes;
use strict;
use XML::Parser;
sub xml_Initialize
{
my ($routine_char,
$routine_start,
$routine_end) = @_;
my $PARSER = new XML::Parser(ErrorContext=>'2');
if ($routine_end)
{
$PARSER->setHandlers(Char => \&${routine_char},
Start => \&${routine_start},
End => \&${routine_end});
}
else
{
$PARSER->setHandlers(Char => \&${routine_char},
Start => \&${routine_start});
}
}
sub get_attributes
{
my %attributes = ();
while(@_)
{
$attributes{$att} = shift;
}
}
sub char_handler
{
}
1;