How to use xjc to generate Java classes from Schema

Do you like this post? A regular project like the PlaneSpotter Color takes many hours of my free time to develop and maintain. Would you offer me a beer for my hard work if I was your neighbour? Modern technology called teleportation makes it easy to send me a beer. Just click here. 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