IPWorks ZIP 2020 Python Edition

Questions / Feedback?

on_start_element Event

Fired when a begin-element tag is encountered in the document.


class OfficeDocStartElementEventParams(object):
  def namespace() -> str: ...
  def element() -> str: ...
  def q_name() -> str: ...
  def is_empty() -> bool: ...

# In class OfficeDoc:
def on_start_element() -> Callable[[OfficeDocStartElementEventParams], None]: ...
def on_start_element(event_hook: Callable[[OfficeDocStartElementEventParams], None]) -> None: ...


The on_start_element event is fired when a begin-element tag is found in the document.

The element name is provided through the Element parameter. The attribute names and values (if any) are provided through the x_attributes properties.

The IsEmpty parameter is true when the event corresponds with an empty element declaration.

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