| Start | ||||
|---|---|---|---|---|
Generating Java code from simple XSD file XSD schema (schema.xsd)The following xml schema (xsd) defines a list of users with attributes Using xjcThis requires the path to the xjc tool (JDK binaries) to be in the OS path variable. The code generation can be started using This will generate java files in the working directory. Result filesThere will be some additional comments, but basically the java files generated look like this: package-info.javaSyntax
Parameters
RemarksThe XJC tool is available as part of the JDK. It allows creating java code annotated with JAXB (opens new window) annotations suitable for (un)marshalling. |
Read Article
https://develop.horje.com/learn/1434/reference