Monday, June 29, 2015

JAXB Concept-Marshalling and Unmarshalling

Prerequisites:
1.JAXB libraries :
You don't need extra library if you have JDK version >1.6(by default jdk ship with jaxb-2.x library), but for jdk version <1.6 you need  to have jaxb lib (jaxb-api.jar | jaxb-impl.jar).
2.JAVA Model Classes
a:-java model classes can be generated using xjc tool(which ship with jdk)  and schema/xsd definition.
b:-you write yourself using Jaxb annotation.



Marshalling (Object to XML)
UnMarshalling (XML to Object)
JAXB Arch Diagram :



No comments:

Post a Comment