Subject: | XML::MyXML cannot handle numeric entities |
It seems that the module cannot handle numeric entities. The script:
use XML::MyXML qw(xml_to_object);
my $xml = "<test>€<¡</test>";
my $obj = xml_to_object($xml);
use Data::Dumper;
print Dumper $obj;
returns the following:
$VAR1 = bless( {
'parent' => undef,
'attrs' => {},
'content' => [
bless( {
'parent' => $VAR1,
'value' => '€<¡'
}, 'XML::MyXML::Object' )
],
'element' => 'test'
}, 'XML::MyXML::Object' );
I would expect that the both numeric entities were converted to perl
characters, i.e. \x{20ac} and \x{a1}.
Regards,
Slaven