I\'m generating an XML Document object via the DOMDocument class. In the process, some kind of whitespace within elements is being converted into . It\
You scrub this character out of your output by not putting it there in the first place. Look for the code that puts the carriage return in your XML, and delete it.