Wednesday, August 22, 2012

JAXB Tutorial with Eclipse

Java Architecture for XML Binding:

Create JAXB Project in Eclipse as Shown in the image

Copy some .xsd file to your Jaxb Project as shown

Create Java Classes from the Scema look into the figures

Click on Finish After Providing the package name

The Fallowing Classes are Populated after finish

Create your main Class As Fallows

Now Run Your Main Class as Java Project

After running the project you will find the xml named as status.xml in the project

Post a Comment