endCDATA Method

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SAX2 Reference

endCDATA Method

Receives the end of a character data (CDATA) section.

[Visual Basic]

Implementation Syntax

Sub endCDATA()

Return Values

If failed, the LexicalHandler raises a trappable error.

[C/C++]

The contents of the CDATA section are reported through the characters event. The endCDATA event reports only the end boundary of the CDATA section.

A CDATA section provides a way to include characters such as "<", ">", and "&" in an XML document that would normally interfere with processing. A CDATA section uses the following syntax:

<![CDATA[text goes here]]>.

Syntax

HRESULT endCDATA();

Return Values

S_OK
The value returned if no errors occur.
E_FAIL
The value returned if the parse operation should be aborted.

To view reference information for Visual Basic or C/C++ only, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

characters Method | startCDATA Method

Applies to: ISAXLexicalHandler/IVBSAXLexicalHandler Interface