DurationXmlAdapter simply uses Duration.toString()
https://bugs.openjdk.java.net/browse/JDK-8042456InstantXmlAdapter, but never omit millis.LocalDateXmlAdapter, only unparsable values will be unmarshalled to nullXmlUtils.DEFAULT_ZONEXMLStreamWriter, which uses AutoCloseable to automaticly close the needed elements.XmlUtils.DEFAULT_ZONE
This makes xml bindings independent of system locale.Copyright © 2022. All rights reserved.