on_special_section Event

Fired when a special section is encountered.

Syntax

class XMLSpecialSectionEventParams(object):
  @property
  def section_id() -> str: ...
  @property
  def text() -> str: ...

# In class XML:
@property
def on_special_section() -> Callable[[XMLSpecialSectionEventParams], None]: ...
@on_special_section.setter
def on_special_section(event_hook: Callable[[XMLSpecialSectionEventParams], None]) -> None: ...

Remarks

The on_special_section event is fired whenever a special section (such as <![ CDATA [ ..text... ]]>) is found in the document.

The full text of the special section is provided by the Text parameter, while the SectionId parameter provides the section identifier (e.g. "CDATA").

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8307]