Skip Menu |

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

Report information
The Basics
Id: 28730
Status: rejected
Priority: 0/
Queue: XML-Simple

People
Owner: Nobody in particular
Requestors: vincent [...] ccl.kuleuven.be
Cc:
AdminCc:

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



Subject: usage of ´ in xml tags
Date: Wed, 8 Aug 2007 16:08:20 +0200
To: bug-XML-Simple [...] rt.cpan.org
From: Vincent Vandeghinste <vincent [...] ccl.kuleuven.be>
Hello, We recently upgraded to the 2.17 version of XML::Simple in perl 5.8.8, and something that worked in an older version does not work anymore. We have xml-tags like this: <token id="1" pos="SPEC" lemma="&agrave;"/> which get an error now Undeclared entity 'agrave' [Ln: 5, Col: 49], when using the Pure Parser and undefined entity at line 5, column 8, byte 79 at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/XML/Parser.pm line 187 when using the Sax Expat parser. I don't know if this is a real bug, or a documented change, but I could not find it in the changes list. cheers, Vincent Vandeghinste Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
This not a bug in XML::Simple and it's not a change in behaviour either. The only named character entities that are predefined in XML are &amp; &quot; &apos; &lt; and &gt;. You cannot use any other entities unless you include a DTD that defines them. See also: http://www.w3.org/TR/REC-xml/#sec-predefined-ent XML::Simple delegates the parsing to XML::Parser or XML::SAX - so if using &acute; did not give errors in the past then that would be due to a bug in the underlying parser module. However, I'm not aware of any parser module exhibiting this problem though.