Subject: | Numbered character references are botched |
The hex and decimal formats of "&#x...;" and "&#...;" become
"&#x...;" and "&#...;" when written. I realize the raw method
exists, but these are valid in XML and should not require the UNSAFE
setting.
The following code yields "<test>r&#xe9;sum&#233;</test>":
use XML::Writer;
my $string = 'résumé';
my $XML = XML::Writer->new();
$XML->dataElement('test', $string);
$XML->end();
I'm running Perl 5.8.8 on SunOS 5.8.
Thanks.