I'm serializing and object using .Net XmlSerializer, and to serialize a string attribute as CData element, I'm using a XmlCDataSection property, as this useful post said. However, I'm having troubles with the output: In SOME CASES, the attribute serialized as CData element is "divided" in two or more CData elements in the output (XML). the object serializedublic class ObjectModel { [XmlAttribute] public int id; [XmlAttribute] public string lang; [XmlElementAttribute] public string title; [XmlElementAttribute] public string url; [XmlIgnore] public string Description; [XmlElement("description")] public XmlCDataSection DescriptionCData { get { if (Description == null || Description == string.Empty) { return null; } XmlDocument _dummyDoc = new XmlDocument(); return _dummyDoc.CreateCDataSection(Description); } set { Description = (value != null) ? value.Data : null; } } [XmlArray("categories")] [XmlArrayItemAttribute("category")] public List<CategoryModel> Categories; }This is how I serialized the object:ObjectModel objModel= loadModel();XmlSerializer serializer = new XmlSerializer(typeof(ObjectModel));StringWriter writer = new StringWriter();serializer.Serialize(writer, objModel);string objSerialized = writer.ToString();writer.Close();And this an example of a problematic output: <ObjectModel id="548649" lang="en"> <title>Accounting Clerk</title> <url> http://www.example.com/detail?lang=en&profileid=158&ID=661 </url> <categories> <category id="1">Finance - Accounting</category> <category id="288">Billing</category> <category id="293">Bookkeeping</category> </categories> <description><![CDATA[<p><SPAN style="font-weight: bold;">REQUIREMENTS:</SPAN><br /><br /> Bachelor's degree in commerce or accounting<br /> 2-3 years of experience in the field<br /> Perfectly bilingual (French and English)<br /> Advanced knowledge of Excel and Simply Accounting<br /><br /> <SPAN style="font-weight: bol]]><![CDATA[d;">QUALITIES:</SPAN></p> <p><br /> Detailed oriented<br /> Good interpersonal relationship<br /> Good multitasking skills and prioritization of projects<br /><br /> <SPAN style="font-weight: bold;">JOB DESCRIPTION</SPAN><br /><br /> Bookkeeping responsibilities:<br /></p> <ul> <li> create, monitors and implemented financial procedures and policies (internal control) ensures that assets are safeguarded<br /></li></ul> <ul> <li> Provide financial information to all external parties </li></ul> <ul> <li> Develop systems that establishes the charting of accounts, procedures and bookkeeping policies<br /></li></ul> <ul> <li> Maintain records verifying the allocation and transaction display</li></ul> <ul> <li> Maintain the balance of accounts recording entries</li></ul> <ul> <li> Maintain general ledger by preparing the trial balance and record entries</li></ul> <ul> <li> Maintain historical records by classifying the records</li></ul> <ul> <li> a