def parse_component_requirement(self, node):
        """
        Parses <ComponentRequirement>

        @param node: Node containing the <ComponentRequirement> element
        @type node: xml.etree.Element
        """

        if 'name' in node.lattrib:
            name = node.lattrib['name']
        else:
            self.raise_error('<ComponentRequirement> must specify a name')

        self.current_component_type.add_component_requirement(ComponentRequirement(name))
def parse_component_requirement ( self , node ) : if 'name' in node . lattrib : name = node . lattrib [ 'name' ] else : self . raise_error ( '<ComponentRequirement> must specify a name' ) self . current_component_type . add_component_requirement ( ComponentRequirement ( name ) )
Parses <ComponentRequirement>

        @param node: Node containing the <ComponentRequirement> element
        @type node: xml.etree.Element