I\'m serializing a class like this
public MyClass { public int? a { get; set; } public int? b { get; set; } public int? c { get; set; } }
Mark the element with [XmlElement("elementName", IsNullable = false)] null values will be omitted.