After a bit of browsing through XMLReader: Have you tried this:
XMLReader::setParserProperty in combination with XMLReader::SUBST_ENTITIES?
Haven't tried anything, just looks promising. Should work like
XMLReader::setParserProperty ('SUBST_ENTITIES', 0);
It seems there is no documentation on what values SUBST_ENTITIES will accept.
Cheers,
Boldewyn
2009-06-25 10:35:33