@classmethod<EOL><INDENT>def itertext(cls, element):<DEDENT>
if element.text:<EOL><INDENT>yield element.text<EOL><DEDENT>for child in element:<EOL><INDENT>for text in cls.itertext(child):<EOL><INDENT>yield text<EOL><DEDENT>if child.tail:<EOL><INDENT>yield child.tail<EOL><DEDENT><DEDENT>
Compatible element.itertext()