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