diff --git a/bpmn_tools/future/xml.py b/bpmn_tools/future/xml.py index 7aba345..2318717 100644 --- a/bpmn_tools/future/xml.py +++ b/bpmn_tools/future/xml.py @@ -142,6 +142,11 @@ def __getitem__(self, name): def __getattr__(self, name): return self[name] + def __eq__(self, other): + return self.text == other.text and \ + self.attributes == other.attributes and \ + self.children == other.children + def find(self, key, value, skip=None, stack=None): if stack is None: stack = []