File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
src/main/java/com/fasterxml/jackson/dataformat/xml Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ Project: jackson-dataformat-xml
8
8
9
9
#242 : Deserialization of class inheritance depends on attributes order
10
10
(reported by Victor K)
11
+ #326 : Force namespace -repairing on `XMLOutputFactory` instances
11
12
#354 : Support mapping `xsi:nul` marked elements as `null`s ( `JsonToken.VALUE_NULL`)
12
13
13
14
2.10.0 .pr2 (31 -Aug-2019 )
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ public XmlFactoryBuilder rebuild() {
164
164
165
165
protected void _initFactories (XMLInputFactory xmlIn , XMLOutputFactory xmlOut )
166
166
{
167
- // Better ensure namespaces get built properly, so:
167
+ // [dataformat-xml#326]: Better ensure namespaces get built properly, so:
168
168
xmlOut .setProperty (XMLOutputFactory .IS_REPAIRING_NAMESPACES , Boolean .TRUE );
169
169
// and for parser, force coalescing as well (much simpler to use)
170
170
xmlIn .setProperty (XMLInputFactory .IS_COALESCING , Boolean .TRUE );
Original file line number Diff line number Diff line change @@ -107,9 +107,12 @@ public XMLOutputFactory xmlOutputFactory() {
107
107
}
108
108
109
109
protected static XMLOutputFactory defaultOutputFactory () {
110
- return XMLOutputFactory .newInstance ();
110
+ XMLOutputFactory xmlOut = XMLOutputFactory .newInstance ();
111
+ // [dataformat-xml#326]: Better ensure namespaces get built properly:
112
+ xmlOut .setProperty (XMLOutputFactory .IS_REPAIRING_NAMESPACES , Boolean .TRUE );
113
+ return xmlOut ;
111
114
}
112
-
115
+
113
116
// // // Parser features
114
117
115
118
public XmlFactoryBuilder enable (FromXmlParser .Feature f ) {
You can’t perform that action at this time.
0 commit comments