nilAttribute

Configuration that specifies whether an attribute is used to indicate a null value (such as the xsi:nil attribute from xml schema). The value is a pair of the QName of the attribute and the string to indicate that the value is in fact null.

For serializing this property means that (for tags only) the tag will be written with empty content and the given attribute. For attributes or a null value the element is not written at all.

Note that the isAlwaysDecodeXsiNil attribute will allow decoding to decode the xsi:nil attribute even if no nil attribute is configured.