mirror of https://github.com/rusefi/rusefi-1.git
XML tune export progress
This commit is contained in:
parent
9b838f9eff
commit
1ba8baafd2
|
@ -15,6 +15,7 @@ public class XmlUtil {
|
||||||
JAXBContext jaxbContext = JAXBContext.newInstance(modelClass);
|
JAXBContext jaxbContext = JAXBContext.newInstance(modelClass);
|
||||||
|
|
||||||
Marshaller marshaller = jaxbContext.createMarshaller();
|
Marshaller marshaller = jaxbContext.createMarshaller();
|
||||||
|
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
|
||||||
|
|
||||||
StringWriter xmlWriter = new StringWriter();
|
StringWriter xmlWriter = new StringWriter();
|
||||||
marshaller.marshal(instance, xmlWriter);
|
marshaller.marshal(instance, xmlWriter);
|
||||||
|
|
Loading…
Reference in New Issue