I have a spring boot project. I have a few xsds in my project. I have generated the classes using maven-jaxb2-plugin. I have used this tutorial to get a sample spring boot a
If you just want serializing/deserializing
bean with XML. I think jackson fasterxml
is one good choice:
ObjectMapper xmlMapper = new XmlMapper();
String xml = xmlMapper.writeValueAsString(new Simple()); // serializing
Simple value = xmlMapper.readValue("1 2 ",
Simple.class); // deserializing
maven:
com.fasterxml.jackson.dataformat
jackson-dataformat-xml
Refer: https://github.com/FasterXML/jackson-dataformat-xml