Subject: | NoExpand = 0 still expanding entity references |
Date: | Wed, 8 Dec 2010 08:35:29 +1100 |
To: | bug-XML-SAX-ExpatXS <bug-XML-SAX-ExpatXS [...] rt.cpan.org> |
From: | David Lindell <lindell.dm [...] gmail.com> |
In expat_2.0.1
XML::SAX::ExpatXS version: 1.31
Perl version: 5.10.0
OS vendor and version: Linux UbuntuDesktop9 2.6.28-11-generic #42-Ubuntu
SMP Fri Apr 17 01:58:03 UTC 2009 x86_64 GNU/Linux
*I am setting NoExpand = 0 and internal entity references are still
resolving*. For example
& to &
< to <
% to %
etc.
Code:
my $handler = p2handler->new($element_path_qualifier, $log_output_path,
$max_output_size);
my $parser = XML::SAX::ExpatXS->new(
NoExpand => 0,
Handler => $handler,
);
eval {
print "Loading $sourcefile into handler...\n";
$parser->parse_uri($sourcefile);
}; if ($@) {
die "$@";
}
Thanks,
David