ISAXLexicalHandler::comment Method (Windows CE 5.0)

Send Feedback

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

CHRESULT comment(const wchar_t* pwchChars,intcchChars);

Parameters

  • pwchChars
    [in] Pointer to the comment data.
  • cchChars
    [in] Length of the comment string.

Return Values

  • S_OK
    Returned if the comment data is returned successfully.
  • E_FAIL
    Returned if the parse operation should be aborted.

Remarks

Comments in the DTD must be properly nested inside startDTD/endDTD and startEntity/endEntity events (if used). Note that XML comments use the familiar HTML comment notation as the following code sample shows.

<!-- comments go here. --> 

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
Link Library: Uuid.lib.

See Also

ISAXLexicalHandler:IUnknown Interface

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.