3 my $parser = XML
::SAX
::ParserFactory
->parser(
4 Handler
=> MySAXHandler
->new
6 binmode STDOUT
, ":utf8";
7 print "\x{65}\x{301}\n";
8 use Encode
; $parser->parse_string(encode_utf8
("<xml>\x{65}\x{301}</xml>"));
9 $parser->parse_string("<xml>\xEF\xBB\xBF\x{65}\x{301}</xml>");
13 use base
qw(XML::SAX::Base);
15 my ($self, $doc) = @_;
16 # process document start event
21 # process element start event