SimpleXML not recognizing predifined XML entities
Posted: Sun Aug 30, 2009 6:10 pm
I am not quite getting this behaviour, isn't it part of the XML specification itself should handle the five predefined entities?
I have this in my XML file
then when i try to load it into a SimpleXML object like this:
I get this error
What am I missing in here?
I have this in my XML file
Code: Select all
<?xml version="1.0"?>
<xml>
<el attr="<&rt;">
</el>
</xml>
Code: Select all
simplexml_load_file('test.xml');Code: Select all
parser error : Entity 'rt' not defined