So I've been looking at interfacing with xml files for a project I've been working on, and one of the things I want to do is generate java classes from a .dtd file. After some searching, I found out that xjc should be able to do what I want, but I cannot for the life of me find out where to get the program itself.
I feel like the answer is sitting right in front of me, but my google-fu is really failing me hardcore right now...
I got it when I installed java. It is probably on your system right now. Look in the directory where java, javac, etc are located.
Its part of the JDK. Check your Java bin folder.
Note that since Java 11, the JAXB was removed from the JDK. It has to be separately installed. There is a bin
directory in the ZIP file where we can find the xjc
and schemagen
tools.
Download link: https://javaee.github.io/jaxb-v2/
xjc is a tool in JAXB which is in Java SE, Java EE and Java Web Services and i'm sure many more. Read up on JAXB Here