def load_columns(columnsTag):
        """
        @param columnsTag: the columnsTag from the XML file
        @return: a list of Columns()
        """

        logging.debug("I'm loading some columns for the outputfile.")
        columns = []
        if columnsTag != None: # columnsTag is optional in XML file
            for columnTag in columnsTag.findall("column"):
                pattern = columnTag.text
                title = columnTag.get("title", pattern)
                number_of_digits = columnTag.get("numberOfDigits") # digits behind comma
                column = Column(pattern, title, number_of_digits)
                columns.append(column)
                logging.debug('Column "%s" with title "%s" loaded from XML file.',
                              column.text, column.title)
        return columns
def load_columns ( columnsTag ) : logging . debug ( "I'm loading some columns for the outputfile." ) columns = [ ] if columnsTag != None : for columnTag in columnsTag . findall ( "column" ) : pattern = columnTag . text title = columnTag . get ( "title" , pattern ) number_of_digits = columnTag . get ( "numberOfDigits" ) column = Column ( pattern , title , number_of_digits ) columns . append ( column ) logging . debug ( 'Column "%s" with title "%s" loaded from XML file.' , column . text , column . title ) return columns
@param columnsTag: the columnsTag from the XML file
        @return: a list of Columns()