Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the XML-MyXML CPAN distribution.

Report information
The Basics
Id: 23622
Status: resolved
Worked: 16 min
Priority: 0/
Queue: XML-MyXML

People
Owner: karjala [...] karjala.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.03
Fixed in: 0.051



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>&#x20ac;&lt;&#161;</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' => '&#x20ac;<&#161;' }, '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
Solved in version 0.051: http://search.cpan.org/~karjala/XML-MyXML-0.051/ Thanks.