in reply to Using XML::Parser on a file without a !DOCTYPE line
Also it comes in handy to do your own error handling when dealing with crufty XML -- otherwise the parser will fatally croak:my $p = XML::Parser->new( ParseParamEnt => 0, );
my $p = XML::Parser->new( ErrorContext => 2, ParseParamEnt => 0, );
FYI, ParseParamEnt appears to only apply to Expat under the hood.
Cheers,
Matt
|
|---|