Share via


createCDATASection method

Creates a CDATA section that contains the specified text.

 

Syntax

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

Parameters

  • text [in]
    Type: BSTR

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

  • newCDATASectionNode [out, retval]
    Type: IHTMLDOMNode

    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.