Subject: | Latest XML::SAX (0.13) breaks XML::Simple::XMLin CDATA |
When XML::Simple::XMLin is used to read in a CDATA section, a trailing '>' is found in the data.
Show quoted text
zsh> cat /tmp/t.pl
my $xml = '
<foo>
<bar><![CDATA[test]]></bar>
</foo>';
use XML::Simple;
use Data::Dumper;
print Dumper XMLin($xml);
---------------------------------------------
$ /perl-5.8.7/bin/perl /tmp/t.pl
Unable to recognise encoding of this document at /perl-5.8.7/lib/perl5/site_perl/5.8.7/XML/SAX/PurePerl/EncodingDetect.pm line 96.
$VAR1 = {
'bar' => 'test>'
};
---------------------------------------------
# after reverting to XML::SAX 0.12
/perl-5.8.7/bin/perl /tmp/t.pl
$VAR1 = {
'bar' => 'test'
};
---------------------------------------------
Thanks...