Loading
XSD to Java

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  XSD to Java ?


  • XSD to Java ?
    Sample Img 15

Ans)

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.

 



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

XSD to Java


XSD to Java

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free