Hello,
I am using $buffer = fread() to read in a txt files contents to mark it up as xml.
The whole process goes smoothly until I parse the xml $buffer. Seems sometimes there are a variety of control & odd characters in the $buffer which cause the parser to die.
What are allowed characters in an xml file? These characters display as odd squares so I don't even know what they are. Does anyone know how to strip them into valid xml character data?
Thanks,
C.