Install XML Beans
Download XMLBeans (xmlbeans-current.zip) from its download site and unzip.
Download Saxon (saxonb9-1-0-5j.zip) from its download site and unzip. Saxon9 a a complete and conformal implementation of the XSLT 2.0, XQuery 1.0, and XPath 2.0 Recommendations published on 23 January 2007 by W3C. XMLBeans needs saxon9.jar and saxon9-dom.jar in the classpath.
Compile XSD Schema into Java Classes
set JAVA_HOME=C:\prog\jdk1.5.0_14 set XMLBEANS_HOME=C:\prog\xmlbeans-2.4.0 set XMLBEANS_LIB=%XMLBEANS_HOME%\lib set SAXON_HOME=C:\prog\saxonb9-1-0-5j set cp= set cp=%cp%;%XMLBEANS_LIB%\xbean.jar set cp=%cp%;%XMLBEANS_LIB%\xmlbeans-qname.jar set cp=%cp%;%XMLBEANS_LIB%\jsr173_1.0_api.jar set cp=%cp%;%XMLBEANS_LIB%\resolver.jar set cp=%cp%;%JAVA_HOME%\lib\tools.jar set cp=%cp%;%SAXON_HOME%\saxon9.jar set cp=%cp%;%SAXON_HOME%\saxon9-dom.jar %JAVA_HOME%\bin\java -classpath "%cp%" org.apache.xmlbeans.impl.tool.SchemaCompiler -out easypo.jar easypo.xsd