File tree 1 file changed +15
-1
lines changed
src/main/java/com/fasterxml/jackson/dataformat/xml/ser
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,21 @@ public enum Feature implements FormatFeature
56
56
* control characters (Ascii codes 0 through 31) as well as additional linefeeds
57
57
* and name characters.
58
58
*/
59
- WRITE_XML_1_1 (false )
59
+ WRITE_XML_1_1 (false ),
60
+
61
+ /**
62
+ * Feature that controls whether serialization of Java {@code null} values adds
63
+ * XML attribute of `xsi:nil`, as defined by XML Schema (see
64
+ * <a href="https://www.oreilly.com/library/view/xml-in-a/0596007647/re166.html">this article</a>
65
+ * for details) or not.
66
+ * If enabled, `xsi:nil` attribute will be added to the empty element; if disabled,
67
+ * it will not.
68
+ *<p>
69
+ * Feature is disabled by default for backwards compatibility.
70
+ *
71
+ * @since 2.10
72
+ */
73
+ WRITE_NULLS_AS_XSI_NIL (false )
60
74
;
61
75
62
76
final boolean _defaultState ;
You can’t perform that action at this time.
0 commit comments