Let's say I have a Person class:
public class Person
{
public string Name { get; set; }
}
How do I parse an XML file containing
<person>
<name>a</name>
</person>
<person>
<name>b</name>
</person>
into an array of two Person
s?
This is a variant of this question: Specific parsing XML into an array
The only difference is that there is no <people></people>
surrounding the whole XML. The <person>
s start immediately.