double quoted xml declaration added
This commit is contained in:
parent
aebfc35eb4
commit
a0f4a5d8f2
1 changed files with 2 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package ru.spcex.clearing.xml.exporter.config;
|
||||
|
||||
import com.ctc.wstx.api.WstxOutputProperties;
|
||||
import com.ctc.wstx.stax.WstxInputFactory;
|
||||
import com.ctc.wstx.stax.WstxOutputFactory;
|
||||
import com.fasterxml.jackson.databind.SerializationFeature;
|
||||
|
|
@ -57,6 +58,7 @@ public class XMLExporterConfig {
|
|||
xmlMapper.registerModule(new JavaTimeModule());
|
||||
xmlMapper.configure(ToXmlGenerator.Feature.WRITE_XML_DECLARATION, true);
|
||||
xmlMapper.configure(SerializationFeature.INDENT_OUTPUT, true);
|
||||
xmlMapper.getFactory().getXMLOutputFactory().setProperty(WstxOutputProperties.P_USE_DOUBLE_QUOTES_IN_XML_DECL, true);
|
||||
|
||||
return xmlMapper;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue