'Removes attribute ``name`` from the specified element.
The element whose attribute to remove is specified using ``source`` and
``xpath``. They have exactly the same semantics as with `Get Element`
keyword. The resulting XML structure is returned, and if the ``source``
is an already parsed XML structure, it is also modified in place.
It is not a failure to remove a non-existing attribute. Use `Remove
Element Attributes` to remove all attributes and `Set Element Attribute`
to set them.
Examples using ``${XML}`` structure from `Example`:
| Remove Element Attribute          | ${XML} | id | xpath=first |
| Element Should Not Have Attribute | ${XML} | id | xpath=first |
Can only remove an attribute from a single element. Use `Remove Elements
Attribute` to remove an attribute of multiple elements in one call.'

def remove_element_attribute(self, source, name, xpath='.'):

    source = self.get_element(source)
    attrib = self.get_element(source, xpath).attrib
    if (name in attrib):
        attrib.pop(name)
    return source
