def _textNodes(self, recurse=False):
        if self.text and getattr(self,"xValid", 0) != VALID_NO_CONTENT: # skip tuple whitespaces
                yield self.text
        for c in self.iterchildren():
            if recurse and isinstance(c, ModelObject):
                for nestedText in c._textNodes(recurse):
                    yield nestedText
            if c.tail and getattr(self,"xValid", 0) == VALID_NO_CONTENT: # skip tuple whitespaces 
                yield c.tail  # get tail of nested element, comment or processor nodes
dataset/ETHPy150Open Arelle/Arelle/arelle/ModelObject.py/ModelObject._textNodes/operator `!=` -> `==`