update_attrib#

update_attrib(xml: lxml.etree._Element, field: str, attribute: str, value: Any) None[source]#

Update in place an attribute of a field with a given value

Parameters
  • xml (_Element) – Root XML

  • field (str) – Field to update

  • attribute (str) – Attribute to update

  • value (Any) – Value to set