Jacob Fix contributed a new version of the setXML method in my wrapper classes for PHP Sablotron. Instead of using the FileReader class, he calls an external parser to read the XML file. This takes care of entity references and validation.
Possibly Related posts (machine generated):