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 ">" and "<" is replaced with "<".
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)
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 ">" and "<" is replaced with "<".
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)