TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Madhu Jayapal
NA
48
0
Add CData Section to existing xml string
Jan 19 2011 2:06 AM
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 />
<EmailID>
[email protected]
</EmailID>
<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 />
<EmailID><![CDATA[
[email protected]
]]></EmailID>
<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
Reply
Answers (
1
)
C# Updater (Using Webclient)
C# - Fetch Novell login info