code: def _set_property(xml_root, name, value, properties=None):
      
      if properties is None:
          properties = xml_root.find("properties")
  
      for prop in properties:
          if prop.get("name") == name:
              prop.set("value", utils.get_unicode_str(value))
              break
      else:
          etree.SubElement(
              properties, "property", {"name": name, "value": utils.get_unicode_str(value)}
          )
docs: Sets property to specified value.