if the deserialized type cannot be mapped to the exact type we should try out the base types from XML root container attributes. It's dependent of #2 .