Compartilhar via


comment Method

 

Receives XML comments from either inside or outside the document element, including comments in the external document type definition (DTD) or schema subset.

Comments in the DTD must be properly nested inside startDTD/endDTD and startEntity/endEntity events (if used).

Visual Basic Implementation Syntax

Sub comment(strChars As String)  

Parameters

strChars
The comment data.

Return Values

If failed, the LexicalHandler raises a trappable error.

C/C++ Syntax

HRESULT comment(  
   [in] const wchar_t * pwchChars,  
   [in] int cchChars);  

Parameters

pwchChars[in]
The comment data.

cchChars[in]
The length of the comment string.

Return Values

S_OK
The value returned if the comment data is returned successfully.

E_FAIL
The value returned if the parse operation should be aborted.

Remarks

XML comments use the familiar HTML comment notation.

<!-- comments go here. >   

Versioning

Implemented in: MSXML 3.0 and later

Applies to

ISAXLexicalHandler Interface