Implemented XML response handling