XML de-serialization using xml element/attributes
问题 Need your help in setting the xml attributes for XML deserialization. This is my input xml: <form> <question id="QnA"> <answer>AnswerforA</answer> </question> <question id="QnB"> <answer>AnswerforB</answer> </question> <question id="QnC"> <answer>AnswerforC</answer> </question> </form> The ids of each question element tag correspond to a class property and its value is the innertext of the corresponding answer element. The .cs file will look like public class Test { private string qnaAns;