add the function of generate the configuration xml