go
Expand Minimize
This topic has not yet been rated - Rate this topic

createCDATASection method

Creates a CDATA section that contains the specified text.

Document Object Model (DOM) Level 3 Core Specification, Section 1.4Internet Explorer 9

Syntax

var newCDATASectionNode = document.createCDATASection(text);

Parameters

text [in]

Type: BSTR

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

newCDATASectionNode [out, retval]

Type: IHTMLDOMNode

Returns a reference to the CDATA section.

Return value

Type: IHTMLDOMNode

Returns a reference to the CDATA section.

Standards information

Remarks

The createCDATASection method is supported only for XML documents.

Examples

The following code example creates a CDATA section.


document.createCDATASection( "My content" ); 

See also

document

 

 

Send comments about this topic to Microsoft

Build date: 11/27/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.