IPWorks ZIP 2020 Python Edition

Questions / Feedback?

on_start_element Event

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

Syntax

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

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

Remarks

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]