XML Parser new line removal

I have a CDATA section in an element tag which contains new line characters however when this is parsed the whole CDATA section is returned with the newlines removed, any idea how I can retain these
[205 byte] By [davidOfWorthinga] at [2007-11-27 6:15:38]
# 1

I think you will find that carriage-return characters are being removed, but new-line characters are not being removed. That's required by section 2.11 of the XML recommendation, here: http://www.w3.org/TR/REC-xml/#sec-line-ends

And I guess you are using Notepad to view the result of this? Notepad is just about the only text editor in the world that doesn't recognize a new-line character as a line ending, so it often doesn't display XML files correctly. Try a different editor. Even Wordpad works properly.

DrClapa at 2007-7-12 17:26:29 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...