O'Reilly logo

Spring Web Services 2 Cookbook by Shameer Kunjumohamed, Hamidreza Sattari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Marshalling and Object-XML Mapping (OXM)

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

Introduction

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required