Adds a new CDATA node to the child list of this element.
[Visual Basic] Public Function AddCData( _ ByVal text As String _ ) As XmlCData [C#] public XmlCData AddCData( string text ); [C++] public: XmlCData* AddCData( String* text ); [JScript] public function AddCData( text : String ) : XmlCData;
The newly created CDATA node.
Exception Type | Condition |
---|---|
ArgumentException | If text is null or contains the character sequence "]]>" in any position. |
An exception is thrown if text contains the caracter sequence "]]>" in any position (that sequence is reserved to indicate the end of a CDATA node).
XmlContainer Class | XmlContainer Members | System.Xml Namespace