def is_empty(self):
return len(self.node) == <NUM_LIT:0> and len(self.node.attrib) == <NUM_LIT:0>and not self.node.text and not self.node.tail<EOL>
Returns True if the root node contains no child elements, no
attributes, and no text. Returns False if any are present.