XmlSerializer List Item Element Name
问题 I have a class PersonList [XmlRoot("Persons")] PersonList : List<Human> when I serialize this to XML, by default it will produce something like this: <Persons> <Human>...</Human> <Human>...</Human> </Persons> My question is what needs to be done in order to change element Human to Person in the output? so the output would be : <Persons> <Person>...</Person> <Person>...</Person> </Persons> and, how to deserialize the above XML to the PersonList class object? Per Nick's advice, Here is my