method for generating questions xml