Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
SchemaCompiler - Call XML Schema Compiler Directly
How to call the XML Schema Compiler, SchemaCompiler.class, directly? The "scomp" command is not working.
✍: FYIcenter.com
If the "scomp" command is not working, you can call the XML Schema Compiler, SchemaCompiler.class, directly as shown below:
1. Run "java" command from Java SE 8 JDK to call SchemaCompiler.class:
\fyicenter\xmlbeans-2.6.0>\fyicenter\jdk-1.8.0\bin\java -cp .\lib\xbean.jar org.apache.xmlbeans.impl.tool.SchemaCompiler -out easypo.jar schemas\easypo.xsd Time to build schema type system: 0.452 seconds Time to generate code: 0.234 seconds Time to compile code: 2.281 seconds Compiled types to: easypo.jar
2. Open the generated JAR file: easypo.jar. You see the following 4 Java data type classes presenting 4 complex element types defined in easypo.xsd:
1731 org\openuri\easypo\Customer.class 1801 org\openuri\easypo\LineItem.class 1405 org\openuri\easypo\PurchaseOrderDocument.class 1465 org\openuri\easypo\Shipper.class
⇒ easypo.xml - Purchase Order Test XML Document
⇐ scomp - Compile XML Schema to Java Data Types
2017-07-07, 1374🔥, 0💬
Popular Posts:
JDK 17 java.base.jmod is the JMOD file for JDK 17 Base module. JDK 17 Base module compiled class fil...
JDK 11 jdk.internal.le.jmod is the JMOD file for JDK 11 Internal Line Editing module. JDK 11 Interna...
How to download and install ojdbc7.jar for Oracle 12c R1? ojdbc8.jar for Oracle 12c R1 is a Java 7 a...
jlGui is a music player for the Java platform. It is based on Java Sound 1.0 (i.e. JDK 1.3+). It sup...
What Is ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is the JAR files of ojdbc.jar, ...