XML Serializer

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,
I want use annotation for format XML like this with xml serializer:
<myclass>
<text><![CDATA[
SOME <XML> TEXT
]]></text>
</myclass>

How format Annotation in C#?? it's possible?
public class MyClass
{
string _data;


[XmlElement]--> annotation
public string text{ get; set; }
}

The second Chance for me it's use IXmlSerializable Interface...
i must use this o there's other method?
thanks for help
.



Relevant Pages

  • XmlTextWriter and suppressing empty elements
    ... I am currently writing a .Net handler to replace an ASP page. ... module used a COM dll to format XML. ...
    (microsoft.public.dotnet.xml)
  • Re: XML Serializer
    ... I want use annotation for format XML like this with xml serializer: ... How format Annotation in C#?? ... public class MyClass ...
    (microsoft.public.dotnet.languages.csharp)
  • DataSet & XML format
    ... I have a problem about format XML ... I use ms data access building block to get a data set from stored ...
    (microsoft.public.dotnet.xml)