New line characters are replaced to match the character specified in the XmlWriterSettings.NewLineChars property.