'Compare a stanza object or XML object against the stored XML mask.
Overrides MatcherBase.match.
:param xml: The stanza object or XML object to compare against.'

def match(self, xml):

    if hasattr(xml, 'xml'):
        xml = xml.xml
    return self._mask_cmp(xml, self._criteria, True)
