Hi Guys,
Requirement is to add CData section to existing XML string of below format
<ContactSet>
<Contacts>
<Contact>
<ContactID>33493</ContactID>
<CustomerID>6663</CustomerID><Fax />
<DateNoMailRequested>1970-01-01T05:30:00</DateNoMailRequested>
<Password>nJzVu@{YxE3</Password>
<Phone>918043510100</Phone>
<Summary>Hi!, Awaiting for your reply. Thanks & Regards</Summary>
</Contact>
</Contacts>
</ContactSet>
Required output is to be like this
<ContactSet>
<Contacts>
<Contact>
<ContactID><![CDATA[33493]]></ContactID>
<CustomerID><![CDATA[6663]]></CustomerID><Fax />
<DateNoMailRequested><![CDATA[1970-01-01T05:30:00]]></DateNoMailRequested>
<Password><![CDATA[nJzVu@{YxE3]]></Password>
<Phone><![CDATA[918043510100]]></Phone>
<Summary><![CDATA[Hi!, Awaiting for your reply. Thanks & Regards]]></Summary>
</Contact>
</Contacts>
</ContactSet>
Basically without CData section when i try to load xml string into XDocument, .net is giving hex decimal parsing error.
Hoping adding CData section will solve the problem.
Awaiting for reply
Thanks in advance