Added code for generating xml file for server side processing