'Removes the element matching ``xpath`` from the ``source`` structure.
The element to remove from the ``source`` is specified with ``xpath``
using 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.
The keyword fails if ``xpath`` does not match exactly one element.
Use `Remove Elements` to remove all matched elements.
Element\'s tail text is not removed by default, but that can be changed
by giving ``remove_tail`` a true value (see `Boolean arguments`). See
`Element attributes` section for more information about `tail` in
general.
Examples using ``${XML}`` structure from `Example`:
| Remove Element           | ${XML} | xpath=second |
| Element Should Not Exist | ${XML} | xpath=second |
| Remove Element           | ${XML} | xpath=html/p/b | remove_tail=yes |
| Element Text Should Be   | ${XML} | Text with italics. | xpath=html/p | normalize_whitespace=yes |'

def remove_element(self, source, xpath='', remove_tail=False):

    source = self.get_element(source)
    self._remove_element(source, self.get_element(source, xpath), remove_tail)
    return source
