parse xml reply and response code