update_txt_fct

Contents

update_txt_fct#

update_txt_fct(xml: _Element, field: str, fct: Callable) None[source]#

Update in place a text of a field by applying a function to the value of the given field

Parameters:
  • xml (_Element) – Root XML

  • field (str) – Field to update

  • fct (Callable) – Function to apply