questionnaire resource xml and json formatting and testing