I have a dynamically generated XML document made with PHP DOMDocument. I use this XML with an XSL file. It worked fine until I got the Yen currency symbol (¥) from a database entry. This symbol is escaped to the ¥ HTML entity. This entity is breaking the XSL/XML engine:
Warning: DOMDocument::load() [domdocument.load]: Entity ‘yen’ not
defined in %file.xml%, line: %1% in %file.php% on line %2%
When the ¥ entity is not there everything works well.
Is there something I haven’t done/included/configured to get this error?
XML only recognizes a few character entities:
<,>",&,'. Anything else would be a parsing error unless you add in definitions for the entities yourself:<!ENTITY yen "¥">