def __eq__(self, other): if not self.xpath("*"): return ContentValue.__eq__(self, other) else: return SequenceValue.__eq__(self, other)