i have an xml and want to deserialize object. below is the xml
Entity design:
[CollectionDataContract]
public class school
{
[XmlElement]
[DataMember]
public students students{get;set;}
}
[DataContract]
[Serializable]
[XmlType(TypeName="students")]
public class stundents{
[XmlElement]
[DataMember]
public student student{get;set;}
}
[DataContract]
[Serializable]
[XmlType(TypeName="student")]
public class student
{
public string name{get;set;}
}
I have used IsReference=true but did not get the expected result.
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit GuptaPosted Jul 2, 2017, 11:26 AM