Refresh Your Java - Before Java Interview
We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....
XSD to Java , there are several ways to do this.
JAXB:
The JAXB binding
compiler translates a W3C XML Schema into one or more Java
classes,
a jaxb.properties file, and possibly other
files, depending on the specific implementation
of JAXB.
Alternatively, JAXB2 offers a way to generate a schema from
annotated Java classes.
Below is the call to generate the JAXB classes from
an XML schema:
xjc -d out
Example.xsd
XMLBeans:
XMLBeans is an
XML binding tool that has full XML Schema support, and offers full
XML Infoset
fidelity. It takes a different approach to
that of most other O/X mapping frameworks,
in that all
classes that are generated from an XML Schema are all derived from
XmlObject,
and contain XML binding information in
them.
Below is the call to generate the JAXB classes from
an XML schema:
scomp -d out -srconly
Example.xsd
With XML SPY :
You can use some tools like XML Spy to do this, please take a look at above Image.
This Portal is intended to put all Java/J2ee related topics at one single place for quick referance, not only Technical , but also the Project Management Related thing such as Development Process methodoogies build process, unit testing etc.,
This Portal has More than 500 Java Interview Questions (also could be Considered as Quick Notes) very neatly separated topic by topic with simple diagrams which makes you easily understandable. Importantly these are from our Realtime expericance.