comment Method

MSXML 5.0 SDK

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

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++]

XML comments use the familiar HTML comment notation.

<!-- comments go here. --> 

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.

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

Applies to: ISAXLexicalHandler/IVBSAXLexicalHandler Interface