XSD(XML Schema) is the defination of a XML content and its written in XML format. So XSD can can be geused to generate Java Bean Classes (POJO) First it convert XSD to XML and then uses the generated XML to generate Java Bean Classes (POJO). Its read XSD amd produces sample XML cotent which is used further. If you want to generate Java Bean Classes / POJO from source XSD(Schema) file, you could get your Java Bean Classes just by tow button click.. Just need to provide the XSD contents. Tool will analyze the XSD and will generate the Java classes.It supports all 3 style of XSD.
- Russian Doll
- Salami Slice
- Venetian Blind
Note:
If your
XSD refer(include / import) to other XSD, tool will not be able
to generate Java Bean Classes. It will not have access to other XSD which is being
referred by import or include statement.
Example:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema elementFormDefault="qualified"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:include
schemaLocation="https://easycodeforall.com/help/xsd/base.xsd"/>
<xsd:import namespace="http://www.easycodeforall.com/schematyxsd/"
schemaLocation="http://www.easycodeforall.com/schemxsd/xyz.xsd"/>
</xsd:schema>
How It Works: