Skip to main content
Creating Java Classes with XSD

Creating Java Classes with XSD

·38 words·1 min
Mike Curtis
Author
Mike Curtis
Maintaining a live technical reference library.

To expand on the “use JAXB” comments above,

In Windows “%java_home%\bin\xjc” -p [your namespace] [xsd_file].xsd

e.g., “%java_home%\bin\xjc” -p com.mycompany.quickbooks.obj quickbooks.xsd

Wait a bit, and if you had a well-formed XSD file, you will get some well-formed Java classes

Related Reading & Resources
For more information about me, check out my bio.