JAXB, stands for Java Architecture for XML Binding, using JAXB annotation to convert Java object to / from XML file. In this tutorial, we show you how to use JAXB to do following stuffs : Marshalling – Convert a Java object into a XML file. Unmarshalling – Convert XML content into a Java Object. Technologies used in this article JDK 1.6 JAXB 2.0 Working with JAXB is easy, just annotate object with JAXB annotation, later use jaxbMarshaller.marshal() or jaxbMarshaller.unmarshal() 1. JAXB Dependency No extra jaxb libraries are required if you are using JDK1.6 or above,
Read full article from JAXB hello world example
No comments:
Post a Comment