I'm working with an XML file -- I generate the file w/php from mySql and then I'm trying to parse it with Sablotron...
When I try to load it w/Sab, it errs out and says "Sablotron error on line 208: XML parser error 4: not well-formed (invalid token)"
But when I load it into XmlSpy and then re-save it without editing the file, Sablotron works fine.
The offending char, I think, is the (TM) character. Even thoguh it's all enclosed in a CDATA node with ', ", and < escaped, it's erring on this.
My question: Is there a catch-all escape function for php, or some way that I need to encode the data before I write the XML file, so that it will parse, no matter what weird characters are inputted?
Thanks for the help
Scott Zagar