Skip Menu |

This queue is for tickets about the XML-Parser-Lite-Tree CPAN distribution.

Report information
The Basics
Id: 118511
Status: new
Priority: 0/
Queue: XML-Parser-Lite-Tree

People
Owner: Nobody in particular
Requestors: daniel [...] trustnetworks.co.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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 &lt; and &#13; 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.