ISAXLexicalHandler::comment Method (Compact 2013)
3/26/2014
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, |
Library |
uuid.lib |