How can I put the <!CDATA> in a XML tag

laur

New Member
I'm trying to put \[code\]<!CDATA>\[/code\] in a specific tag in my \[code\]XML\[/code\] file, but the result is \[code\]<![CDATA[mystring]]>\[/code\]Someone can help me ?The encoding\[code\]XmlProcessingInstruction pi = doc.CreateProcessingInstruction("xml", "version=\"1.0\" encoding=\"utf-8\"");\[/code\]How I'm doing\[code\]texto.InnerText = "<![CDATA[" + elemento.TextoComplementar.ToString() + "]]>";\[/code\]
 
Back
Top