Parse XML string to class in C#? [duplicate]
There are several ways to deserialize an XML document - the XmlSerializer
living in System.Xml.Serialization
and the newer DataContractSerializer
which is in System.Runtime.Serialization
.
Both require that you decorate your class members with attributes that tell the serializer how to operate (different attributes for each).