In this example we will see how we can convert a Java Object into an JSON using JAXB Marshalling Technique. JAXB Dependency We will be requiring the below jars to be put in the classpath for performing the marshalling operation. jaxb-api.jar org.eclipse.persistence.moxy-2.6.2.jar eclipselink-2.6.2.jar validation-api-1.1.0.Final.jar … [Read more...]
JAXB UnMarshalling Example – Convert XML to Java Object
Previously we have learnt how to convert a Java Object into XML using JAXB Marshalling Technique. Now let's learn the vice-versa converting XML back to Java Object JAXB Dependency We will be requiring the below two jars to be put in the classpath for performing the unmarshalling operation. jaxb-api.jar jaxb-impl.jar … [Read more...]
JAXB Marshalling Example – Convert Java Object to XML in Java
In this example, we will see how we can convert a Java Object into an XML using JAXB Marshalling Technique. JAXB Dependency We will be requiring the below two jars to be put in the classpath for performing the marshalling operation. jaxb-api.jar jaxb-impl.jar … [Read more...]
JAXB Tutorial – What is JAXB
What is JAXB ? JAXB stands for Java Architecture for XML Binding, which can be used to convert Java object to XML and XML back to Java object. Basically we will be able to perform the below two operations. Marshal - Converting a Java Object into XML UnMarshal - Converting XML into Java Object We will be using marshal()/unmarshal() methods of jaxbMarshaller to … [Read more...]