Use xml to config the parameter of event