def parse_path(self, node):
        """
        Parses <Path>

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

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

        description = node.lattrib.get('description', '')

        self.current_component_type.add_path(Path(name, description))
def parse_path ( self , node ) : if 'name' in node . lattrib : name = node . lattrib [ 'name' ] else : self . raise_error ( '<Path> must specify a name.' ) description = node . lattrib . get ( 'description' , '' ) self . current_component_type . add_path ( Path ( name , description ) )
Parses <Path>

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