Subject: | Entities are not decoded |
Date: | Wed, 26 Oct 2016 12:05:28 +0100 |
To: | "bug-XML-Parser-Lite-Tree [...] rt.cpan.org" <bug-XML-Parser-Lite-Tree [...] rt.cpan.org> |
From: | Daniel Beardsmore <daniel [...] trustnetworks.co.uk> |
Entities such as < and are not decoded, either in the text enclosed within elements or within attribute values.
When using SOAP::Lite, the parameters received in method call responses are successfully decoded. Where, I have no idea - I can see the code to encode entities, but nothing that decodes them (I would expect to see the string "quot" somewhere in the code, and it does appear but only for encoding).
One would assume that XML::Parser::Lite would automatically decode entities before firing the char callback, but if not, XML::Parser::Lite::Tree surely would. Since SOAP::Lite achieves this successfully, one could argue that it's Tree.pm that shoulders this responsibility. No mention is made in the documentation for either module regarding the need to handle entities manually.