'Returns true if the ``element`` matches the ``selector``.
:param  element:    an XML ``Element``
:param  selector:   some partial string in the desired tags to return
Change point for more sophisticated selectors.'

def matches_selector(self, element, selector=None):

    return bool(((selector is None) or (isinstance(element, Element) and (selector in element.tag))))
