PHP - Processing Invalid XML
- by Paul
I'm using SimpleXML to load in some xml files (which I didn't write/provide and can't really change the format of).
Occasionally (eg one or two files out of every 50 or so) they don't escape any special characters (mostly &, but sometimes other random invalid things too). This creates and issue because SimpleXML with php just fails, and I…