I am using the XmlSerializer. It serializes the object just fine but the client requires required empty elements to be in this format . Th
You can try setting the XmlElementAttribute.IsNullable property to true. However, bear in mind xsi:nil="true" attribute will be output as a consequence.
true
xsi:nil="true"