Design entities and deserialization

Posted by Sreenuksr under C# on 7/6/2017 | Points: 10 | Views : 104 | Status : [Member] | Replies : 1
i have an xml and i need to create entities and fill entities based on below xml.
It is nothing but child inside child with same class name. please provide solution. thanks in adance.

<school>
<students>
<stundent>
<name>James</name>
<student>
<name>Jason</name>
<student>
<name>Daniel</name>
<student>
<name>Walsh</name>
</student>
</student>
</student>
</student>
</students>
</school>




Responses

Posted by: Jitendrasoft09 on: 7/7/2017 [Member] [MVP] Starter | Points: 25

Up
0
Down
Do not close student tag end of the line. Because you want to create a set of student records. Try with below example.
<Students>
<Student>
<name>
<address>
</Student>
<Student>
<name>
<address>
</Student>
<Students>


Jitendra Kumar
If my post helps you, plz mark as an answer.

Sreenuksr, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response