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
Value to write as CDATA.
string elementName
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 |
|
This method creates a new element with the specified name and writes the specified value as CDATA within that element.
Example¶
1 2 3 4 |
|