Hi,
In order to deserialize this type of XML you would need composed objects:
[Serializable]
public class Question
{
[XmlAttribute] public string id;
public string answer;
}
[Serializable]
public class Form
{
[System.Xml.Serialization.XmlElementAttribute("question")]
public Question [] question;
}
Then try to desirialize:
XmlSerializer ser = new XmlSerializer(typeof(Form));
XmlReader xr = new xmlReader(inputxml);
Form t = ser.Deserialize(xr) as Form;
Hope this helps