on_comment Event
Fired when a comment section is encountered.
Syntax
class XMLCommentEventParams(object): @property def text() -> str: ... # In class XML: @property def on_comment() -> Callable[[XMLCommentEventParams], None]: ... @on_comment.setter def on_comment(event_hook: Callable[[XMLCommentEventParams], None]) -> None: ...
Remarks
The on_comment event is fired whenever a comment section (<!-- ..text... -->) is found in the document.
The full text of the comment is provided by the Text parameter.