Compartilhar via


ISAXLexicalHandler::comment Method

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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.

Syntax

CHRESULT comment(
  const wchar_t* pwchChars,
  int cchChars
);

Parameters

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

Return Value

  • 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

Header msxml2.h, msxml2.idl
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

ISAXLexicalHandler