Migration Guide : Migrating from Version 6.0 : Suppress serialization of nil attribute values when attribute mapping specifies Required=”false”
Suppress serialization of nil attribute values when attribute mapping specifies Required=”false”
This change does NOT affect objects that utilize an XML schema for serialization. Nil attribute values are now suppressed during serialization of attributes with attribute mappings that specify 'Required="false"’. For example:
<ClassElementMapping ElementTagName="customer" ClassName="AbtXmlSampleCustomer" >
<AttributeMapping ClassAttribute="lastName" Required=”false”>
<Attribute>lastName</Attribute>
</AttributeMapping>
</ClassElementMapping>
If the lastName attribute of a serialization target object is nil, the serializer will not render the lastName attribute.
 
Last modified date: 06/19/2020