Monday, 4 April 2016

What are the steps of building & using JAXB applications ?


1. Develop or obtain XML schema
  • Optionally annotate the schema with binding customizations if necessary (or place them in an external binding file)

2. Generate the Java source files
  • By compiling the XML Schema through the binding compiler

3. Develop JAXB client application
  • Using the Java content classes generated by the binding compiler along with the javax.xml.bind JAXB interfaces

4. Compile the Java source codes

5. Write Java applications (with the classes and the binding framework) that : 
  • Build object trees representing XML data that is valid against the XML Schema by either unmarshalling the data from an XML document or instantiating the classes you created.
  • Access and modify the data
  • Optionally validate the modifications to the data relative to the constraints expressed in the XML schema
  • Marshal in-memory data to a new XML document

No comments:

Post a Comment

Note: only a member of this blog may post a comment.