mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-28 03:00:16 +00:00
11 lines
234 B
Python
11 lines
234 B
Python
from . import base
|
|
from xml.etree import cElementTree
|
|
|
|
class MatchXPath(base.MatcherBase):
|
|
|
|
def match(self, xml):
|
|
x = cElementTree.Element('x')
|
|
x.append(xml)
|
|
if x.find(self._criteria) is not None:
|
|
return True
|
|
return False
|