Reputation: 23587
i am working on Jaxb 2.x and able to unmarshel XML doc in to Java component but when i am trying to create schema from my existing java classes its not working.
i have gone through the various site with the help of Google but till now not able to get success,if any one have used this functionality in the past or using it can help me how to achieve this.
Thanks in advance
Upvotes: 1
Views: 4635
Reputation: 23587
After long try i am able to generate XSD based on POJO using JAXB schemagen.In my main class based on which i was trying to generate XSD was refereeing some other classes which was in other packages and i was not able to figure it out how to set class path for these classes but on removing those references was able to get schemagen working will explore now how to set class path for schemagen
Upvotes: 0
Reputation: 149017
Here is an example of generating an XML schema from Java classes:
Upvotes: 2