def _check_for_legal_children(self, name, elt, mustqualify=<NUM_LIT:1>):
inheader = name == "<STR_LIT>"<EOL>for n in _children(elt):<EOL><INDENT>t = n.nodeType<EOL>if t == _Node.COMMENT_NODE: continue<EOL>if t != _Node.ELEMENT_NODE:<EOL><INDENT>if t == _Node.TEXT_NODE and n.nodeValue.strip() == "<STR_LIT>":<EOL><INDENT>continue<EOL><DEDENT>raise ParseException("<STR_LIT>" + name, <EOL>inheader, elt, self.dom)<EOL><DEDENT>if mustqualify and not n.namespaceURI:<EOL><INDENT>raise ParseException('<STR_LIT>' +n.nodeName + '<STR_LIT>' + name, inheader, elt, self.dom)<EOL><DEDENT><DEDENT>
Check if all children of this node are elements or whitespace-only
        text nodes.