CData¶
Writes the specified value to the current element as CDATA.
1 | |
Writes the specified value to a new element with the specified name as CDATA.
1 | |
Parameters¶
string value
The value to write as CDATA.
string elementName
The name of the element to create.
Returns¶
The current XmlWriter instance, allowing for method chaining. The current XmlWriter instance, allowing for method chaining.
Remarks¶
This method writes the specified value to the current element, enclosed within a CDATA section. CDATA sections are used to escape blocks of text containing characters that would otherwise be interpreted as markup.
Example¶
1 2 3 4 5 6 | |
Example¶
1 2 3 4 | |