I have a PHP application that outputs some XML files. I'm attaching the functions I'm using to encode the content within the XML tags.
The problem is that there are still some characters that are breaking the XML when it is imported into a 3rd party application.
I can't figure out which characters to fix.
I'd like to just have a good XML encoding function that I can rely on.
Please fix my XML encoding function or give me a new one that works all the time.
I'm attaching my current function and a sample XML output that is broken.
I need to have this completed within 12 hours of when I accept your bid.