setPropertyValue

fun Element.setPropertyValue(name: String, value: String?)(source)

Sets the value of the value attribute of property name, or adds the property if it does not exist.

If multiple properties have the same name, their values are all set to value.

If value is null, then the value attribute will be removed from all properties with the given name.