How to use xjc to generate Java classes from Schema

Do you like this post? Writing posts, developing libraries and programming online font creators is actually hard work. I order most of my electronics from a Chinese website called Banggood. It is save and the items usually arrive in good quality. With every order you do there by following this link you are supporting the blog. Thank you!

This blog post nicely describes how to generate Java classes with JAXB to read XML files, given a schema:
Using JAXB to Generate Java Objects from XML Document

In case you don’t have a schema you can also infer one. This online tool can do it for you:
http://www.freeformatter.com/xsd-generator.html

Posted by squix78

Leave a Reply