If you're just looking to parse XML as a one off, and you don't want to deal with downloading random binaries, or messing about with your PATH, you can easily get access to xjc
by installing any JDK 1.8 version.
To do this nice and easily, use SDKMAN
Once it's installed, run sdk install java 8.0.332-zulu
to install Java 8, you probably don't want to set it as your default, so once the install is done run sdk use java 8.0.332-zulu
and you're good to.