I am trying to create an XML document in C # with CDATA to store text inside an element. For example..
<email>
<![CDATA[test@test.com]]>
</email>
However, when I get the InnerXml property of the document, CDATA was reformatted, so the InnerXml line looks like below, which fails.
<email>
<![CDATA[test@test.com]]>
</email>
How to save the original format when accessing an XML string?
Greetings
Nick
source
share