Click or drag to resize
XmlExtensionsAppendCData Method
Appends CDATA sections to the XML element based on the input text. If the text already contains CDATA tags, the text is split into corresponding number of CDATA sections in place of the CDATA end tags.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static void AppendCData(
	this XmlElement node,
	string text
)

Parameters

node
Type: System.XmlXmlElement
Parent XML node
text
Type: SystemString
Input text

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type XmlElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionnode is null.
ArgumentNullExceptiontext is null.
See Also