Refactor the data object and created a abstract transger object class. Used reflection to do the convert to xml method so eliminate code repetion