Change attribute for a xml element

changeAttribute(xml, attri, new)

Arguments

xml

A xml element

attri

The attribute name

new

The new attribute value