on_characters Event
Fired for plain text segments of the input stream.
Syntax
class XMLCharactersEventParams(object): @property def text() -> str: ... # In class XML: @property def on_characters() -> Callable[[XMLCharactersEventParams], None]: ... @on_characters.setter def on_characters(event_hook: Callable[[XMLCharactersEventParams], None]) -> None: ...
Remarks
The on_characters event provides the plain text content of the XML document (i.e. the text inside the tags). The text is provided through the Text parameter.
The text includes white space as well as end of line characters, except for ignorable whitespace which is fired through the on_ignorable_whitespace event.