def visit_all(self, node, parent): """Allows the elements in the group to appear (or not appear) in any order in the containing element. Definition:: <all id = ID maxOccurs= 1: 1 minOccurs= (0 | 1): 1 {any attributes with non-schema Namespace...}> Content: (annotation?, element*) </all> :param node: The XML node :type node: lxml.etree._Element :param parent: The parent XML node :type parent: lxml.etree._Element """ sub_types = [tags.annotation, tags.element] result = xsd_elements.All() annotation, children = self._pop_annotation(list(node)) for child in children: assert child.tag in sub_types, child item = self.process(child, node) result.append(item) assert None not in result return result
def visit_all(self, node, parent): """Allows the elements in the group to appear (or not appear) in any order in the containing element. <all id = ID maxOccurs= 1: 1 minOccurs= (0 | 1): 1 {any attributes with non-schema Namespace...}> Content: (annotation?, element*) </all> """ sub_types = [tags.annotation, tags.element] result = xsd_elements.All() for child in node.iterchildren(): assert child.tag in sub_types, child item = self.process(child, node) result.append(item) assert None not in result return result