Note that the constant "NEEDS_NEWLINE_NORMALIZATION" is set, this removes win32 CRLF pair, and replaces it with LFLF pair. It converts CR to LF. I am testing with NEEDS_NEWLINE_NORMALIZATION set to 0. Text fields in XML lose their CR in win32 versions.