Marshalling |
||
Marshalling is the process of mapping Java objects into XML documents. The binding APIs provide the Marshaller class that has a method called marshal. The marshal method outputs XML data corresponding to the content of a Java object. JAXB specifies the XML data in the stream specified by the second parameter to the marshal method. The code snippet on the right displays the steps to marshal the XML document. Note that the steps are similar to the steps of the unmarshalling process. To marshal the XML document, you need to:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
|
|
Click the Next button to continue. |