createCDATASection method

Creates a CDATA section that contains the specified text.

Syntax

HRESULT retVal = object.createCDATASection(text, newCDATASectionNode);

Parameters

  • text [in]
    Type: [BSTR](https://msdn.microsoft.com/en-us/library/ms221069)

    A BSTR value that contains the text to place inside the CDATA section.

  • newCDATASectionNode [out, retval]
    Type: [IHTMLDOMNode](aa704078(v=vs.85).md)

    The address of a pointer to an IHTMLDOMNode interface that receives a reference to the CDATA section.

Return value

Type: HRESULT

This method can return one of these values.

Return code Description
S_OK

The operation completed successfully.

Standards information

Remarks

The IHTMLDocument7::createCDATASection method is supported only for XML documents.