Brief understanding about JAXB
JAXB (Java Architecture for XML Binding) is one of Java SE APIs. It provides basically a fast and convenient way to bind Java objects with the structural document, in particular XML document. That means you can load an XML document content and create a Java object tree (unmarshalling). Otherwise, you can also simply persist any Java object into a XML document (marshalling).
## What does it help us? ##
All we need to define is a schema contains: definition of Java classes, elements, attributes and constraints between the elements. JAXB takes care of all the rest jobs. We can use JAXB in any certain case such as loading the configuration files, saving processing context,…
## How does it work? ##
### JAXB architecture ###
* Schema compiler: Binds a source schema to a set of schema-derived program elements. The binding is described by an…
View original post 530 mots de plus