I am exposing an entity over Web API and when the response is coming back as XML, It is getting serialized in a very not readable way.
I don't want to get rid of the [Serializable] attribute and I would prefer not to annotate the entity and its fields with [DataContract] and [DataMember] attributes.
I was able to solve the JSON serialization by ignoring the Serializable attribute. I want to basically be able to do the same thing for XML serialization.
Is there a way around this?