When using the MSBuild.ExtensionPack.Xml.XmlFile TaskAction="UpdateElement" task the TAB and CR characters are being replaced with 

See topics discussed here: 
 xml
See topics discussed here: 
 xml