I\'m trying to use XMLSerializer to generate XML such as the following, where the contents of is an array, but the elements can be of differing t
I ended up abandoning XmlSerializer and using Json.NET to serialize the object to json and then convert to XML.