- write the classes of the objects which should be stored as XML files, or DOM nodes, etc...
- annotate them so that the corresonding schema can be generated
- generate content according to schema
- unmarshal the content (i.e load into content tree in Java)
- validate if required
- marshall, i.e export again as XML
Sunday, 6 January 2008
JAXB
Another interesting Java technology pushed by Sun is JAXB, it stands for "Java Architecture XML Binding". Most of the information found here comes from Sun's JAXB tutorial.
It is a means of coding Java Object into XML using the descriptive power of the XML Schemas.
It is possible to generate Java Object from XML descriptions using a Schema. To simplify the process, it is also possible to use JAXB annotations of Java classe in order to generate the schemas needed for such schemas.
So the important steps to consider when using this is:
Labels:
java,
JAXB,
persistence,
XML