The XML parser treats newline sequence in a unique way (replacing newline by a single linefeed). This is to ensure the cross-platform compatibility e.g. in Windows linefeed is represented by linefeed + carriage while in Unix it is represented by linefeed character.