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