Monday 21 March 2011

Generating java classes from xsd (Eclipse) : Jaxb


  1. Create a java project in eclipse
  2. Create a xsd file: (Copy xsd file from here )
  3. Run xjc command in command prompt.
    Go to the project folder having this xsd. Note that eclipse has src folder....we have to generate packages here.
    run the following command here


  4. Now go to eclipse and these java classes to the project and we are done.

No comments:

Post a Comment