'Removes all attributes from the specified element.
The element whose attributes 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.
Use `Remove Element Attribute` to remove a single attribute and
`Set Element Attribute` to set them.
Examples using ``${XML}`` structure from `Example`:
| Remove Element Attributes         | ${XML} | xpath=first |
| Element Should Not Have Attribute | ${XML} | id | xpath=first |
Can only remove attributes from a single element. Use `Remove Elements
Attributes` to remove all attributes of multiple elements in one call.'

def remove_element_attributes(self, source, xpath='.'):

    source = self.get_element(source)
    self.get_element(source, xpath).attrib.clear()
    return source
