-
Notifications
You must be signed in to change notification settings - Fork 8
Home
Mike Zhou edited this page Jun 9, 2018
·
9 revisions
- Generate Java Class from XML schema (XSD file)
- install "Dali Java Persistence Tools - JAXB Support".
- Follow the procedure as shown in the following figure: right click the XSD file->Generate->JAXB classes
NOTE: If you had the following error, you need to change your JRE to JDK version, instead of the JRE version. Or add JDK tools.jar to the project's Java Build Path.
Error: Could not find or load main class com.sun.tools.internal.xjc.XJCFacade
- Edit JSON doc
To edit json schema, installing Eclipse Web Developer Tools is recommended.
- Compile JSON schema to Java
We can use JSONSchema2POJO to compile json schema to a set Java classes.