My problem is that I would like to use the CollectionDataControlAttribute to deserialise a collection which does not have a group element. The xml looks something like this:
<RootElement>
<SomeProperty />
<ListElementEntry />
<ListElementEntry />
<ListElementEntry />
<ListElementEntry />
</RootElement>
Where ListElementEntry appears zero or more times.
Help Appreciated
Does it have to be
DataContractSerializer? You can elect to useXmlSerializerfor WCF, and then you can use:Ultimately,
DataContractSerializeris simply not designed to give you the same level of xml control – which is why it doesn’t support even attributes. If you need specific xml,XmlSerializeris usually a better choice.