Class Section { [XmlAttribute(AttributeName = "name")] public string Name{get;set;} [XmlElement(ElementName = "question")] public List<question>Question{get;set;} } Class Question { public int Type{get;set;} [XmlAttribute(AttributeName = "id")] public int Id{get;set;} [XmlAttribute(AttributeName = "score")] public int score{get;set;} }
<section name="abc"> <yes_no_question id="S1.Q1" score="2" /> <wh_question id="S1.Q2" score="3" /> </section>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)