update_txt_fct#

update_txt_fct(xml: lxml.etree._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

  • value (Callable) – Function to apply