XML::Parser 

my $parser = XML::Parser->new(
    Handlers => {
        Start => \&handle_start,
        Char  => \&handle_char
    }
);

$parser->parsefile($filename);