In this chapter, we will cover the following topics:
Marshalling with JAXB2
Marshalling with XMLBeans
Marshalling with JiBX
Marshalling with XStream
Marshalling with MooseXML
Creating a custom marshaller using XPath for conditional XML parsing
In Object/XML Mapping (OXM) terminology, marshalling (serializing) converts the object representation of data into the XML format and unmarshalling converts XML into the corresponding object.
Spring's OXM simplifies OXM operations by using rich aspects of the Spring framework. For example, the dependency injection feature can be used to instantiate different OXM technologies into objects to use them, and Spring can use annotations to map a class or ...