- Create a java project in eclipse
- Create a xsd file: (Copy xsd file from here )
- 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
- Now go to eclipse and these java classes to the project and we are done.
A java blog with a collection of examples and tutorials on Java and related technologies. (Under maintenance with continuous updates) Be in touch with java jazzle or k2java.blogspot.com.
Tuesday, March 22, 2011
Generating java classes from xsd (Eclipse) : Jaxb
Subscribe to:
Post Comments (Atom)
worst example
ReplyDelete