Share via


ISAXLexicalHandler::comment Method (Windows Embedded CE 6.0)

1/6/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

See Also

Reference

ISAXLexicalHandler