def setParameters(self, props):
        """ Load up the global parameter attributes.

        Loads the global properties from the props class.

        params: props - An instance of class props.



        """

        
        self.fldDelimiter = props.getProperty("head","fielddelimiter","X")
        self.rowDelimiter = props.getProperty("head","rowdelimiter","X")
        self.rootname = props.getProperty("head","rootname")
        self.rowname = props.getProperty("head","recordname")
        if self.debug:
            print "RowDelim[" , self.rowDelimiter , "]"
        self.dtd = props.getProperty("head","dtd","null")
        self.comment = props.getProperty("head","comment")
        if (self.fldDelimiter == "X"):
	    print "Warning: Property file error: Fielddelimiter not set, using comma"
        self.fldDelimiter=","

        if (self.rowDelimiter[0] == 'X'):
            print "Warning: Property file error: Rowdelimiter not set, using NewLine"
        self.rowDelimiter="\n"
        
        self.header1 = self.PROLOG + self.NEWLINE
        if (self.dtd != ""):
            self.header2 ="<!DOCTYPE " + self.rootname + 
            " SYSTEM " +"\""+ self.dtd + "\""+ ">"+  self.NEWLINE + 
            self.NEWLINE
            self.header3 ="<!-- " + self.comment + " -->" + self.NEWLINE
        self.nfields = props.getProperty("head","fields")

        if self.debug2:
            print "setParameters: ",self.nfields
        for i in range(int(self.nfields)):
            fieldref = "field" + str(i)
            #self.addProp(fieldref, props.getProperty('fields',fieldref))
            self.fieldnames[fieldref]=props.getProperty('fields',fieldref)
            if self.debug2:
                print "setParameters: ",props.getProperty('fields',fieldref)
        if self.debug2:
            print self.fieldnames.keys()
 Load up the global parameter attributes.

        Loads the global properties from the props class.

        params: props - An instance of class props.



        
recipes/Python/159100_CSV_to_XML_with_configuration/recipe-159100.py