Question Locked

How to Create Jackson Classes from XSD

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Jackson does not provide a tool for generating Jackson classes from XSD or JSON, as JAXB does for a specific XSD.

The JAXB class generator was used to generate a set of classes for the specified XSD schema. For polymorphic types, for example, JAXB provides the following annotation to identify the name based on the name of an XML element.

Can such courses be offered in Jackson? Specifically, determining the type based on the name of an XML element.

3 replies

by HadiqaKyani

Follow the steps below to generate Java classes from XML Schema in Eclipse IDE.
Step 1: Create JAXB project.
Step 2: Assign name of your Project.
Step 3: JAXB Facet Setup.
Step 4: Create XSD file.
Step 5: Adding jar files to Project.
Step 6: Generating Java classes.

by naveedmunirch edited

Step 1: Create JAXB project. ...
Step 2: Assign name of your Project. ...
Step 3: JAXB Facet Setup. ...
Step 4: Create XSD file. ...
Step 5: Adding jar files to Project.
Step 6: Generating Java classes.

by jimmy.wick

Open a command prompt. Run the JAXB schema compiler, xjc command from the directory where the schema file is located. The xjc schema compiler tool is located in the app_server_root \bin\ directory. Use the generated JAXB objects within a Java application to manipulate XML content through the generated JAXB classes.

Regards,
james

This discussion is closed to new replies.