Data Contract Serializer – How to omit the outer element of a collection

The DataContract serializer does not allow this degree of control over the resulted XML, you will have to use instead the XmlSerializer in order to achieve this.

Leave a Comment