xml serialization

  • Thread starter Thread starter Ohad Young
  • Start date Start date
O

Ohad Young

Hi,

I'm using xml serialization to persist an object's state. The objects has a
public field which holds xml content as string.
The field is decorated with the [XmlTextAttribute] instruction attribute.
When the field is serialized its content changes, for example ">" is
replaced with "&gt" and "<" is replaced with "&lt".
I understand why, for generating a well-formed Xml stream, but I want the
content to be unchanged, enclosed within a CDATA section. How can I do it?

Thanks, Ohad

--
Ohad Young
Medical Informatics Research Center
Ben Gurion University
Information System Eng
Office Phone: 972-8-6477160
Cellular Phone: 972-54-518301
E-Mail: (e-mail address removed)
 
Ohad,

I spnt half an our doing some research on this. I believe you will have to
create your own serializer for that.

Telmo Sampaio
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top