Implemented XML creation on the server