Here\'s a code example:
public class Person { public string FirstName { get; set; } public string LastName { get; set; } }
...
That's a malformed XML you want, not possible to obtain it via XmlSerializer, but you can change ArrayOfPersno element name to smothing else:
XML
XmlSerializer
ArrayOfPersno
example:
XmlSerializer xs = new XmlSerializer(typeof(Person[]), new XmlRootAttribute("Persons"));
will give you:
John Smith ...