XJC is a tool for JAXB to generate Java classes from XSD.
Command format
XJC [Options] Schema File/url/dir/jar ... [-B bindinfo] ...
Command parameters
-D dir
Generates a Java class in the specified directory. The specified directory must be already present, and XJC will not create the directory. If this option is not specified, the current directory is assumed to be default.
-P PKG
Specifies the package path of the generated Java class.
-quiet
Quiet mode.
-verbose
Details mode.
-help
Displays help information.
-version
Displays version information.
Instance
A) Compile the hello.xsd to output the generated Java class to the specified directory.
XJC hello.xsd-d-D H:\XJC
b) Compile the hello.xsd and specify the package path for the generated Java class.
Xjc-p Com.huey.hello hello.xsd
JDK TOOLS-XJC: Compiling XML schemas into Java classes