Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Built-In Transformers > XML Transformers

XML Transformers

For those applications which use XML as the message format, the framework provides support in converting a POJO to XML and vice versa automatically. There’s a bit more involved than simply using an XML tag, as we see in the above built-in transformers. If you have already worked with Spring’s Object-to-XML (OXM) framework, this section will be easy.

Spring uses two classes to marshal and unmarshal the Object into XML and vice versa: the org.springframework.oxm.Marshaller and the org.springframework.oxm.Unmarshaller. The Marshaller is used to convert an Object to an XML Stream, while the Unmarshaller does the opposite—converting an XML stream to an Object.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial