private static void WriteTargetContent(XmlWriter xmlTxtWriter, IEnumerable <SegmentSection> segmentSections) { var strTemp = new StringBuilder(); foreach (var section in segmentSections) { if (section.RevisionMarker != null && section.RevisionMarker.Type == RevisionMarker.RevisionType.Delete) { //ignore from the comparison process } else { strTemp.Append(section.Type == SegmentSection.ContentType.Text ? section.Content : " "); } } xmlTxtWriter.WriteString(ReportUtils.NormalizedWords(strTemp.ToString())); }