Xml Parser Error: Entity Not Defined

XML parser error: entity not defined in all browsers

Recent browsers will mostly not load external DTDs

Entity '&' not defined on the xml file

& is not a valid Xml character by itself. Use & for &

XML Entity not defined in Chrome

Apparently using htmlspecialchars and htmlentities in tandem does the trick.

htmlspecialchars(htmlentities($value));

Problem with simpleXML and entity not being defined

HTML Encoding of Latin1 characters (like Ø, what that character describes) is what has broken the XML parser. If you're in control of the data, you need to escape it using XML style character encoding (Ø just happens to be & #216;)



Related Topics



Leave a reply



Submit