I know the basics of right way for map XML to strongly type objects but my received XML from service is different! my XMl is like this:
<Group>
<Title>friends</Title>
<Member>
<Name>Omid</Name>
</Member>
<Member>
<Name>Kourosh</Name>
</Member>
<Group>
and my object is:
public class Group
{
public string Title { get; set; };
public ICollection<Member> Members { get; set; };
}
so when I try to map XElement (from XML) to Group then Members don't map :( whats the best way? changing XML? using specific config for AutoMapper? and how? thanks