Categories:
Audio (13)
Biotech (29)
Bytecode (35)
Database (77)
Framework (7)
Game (7)
General (512)
Graphics (53)
I/O (32)
IDE (2)
JAR Tools (86)
JavaBeans (16)
JDBC (89)
JDK (337)
JSP (20)
Logging (103)
Mail (54)
Messaging (8)
Network (71)
PDF (94)
Report (7)
Scripting (83)
Security (32)
Server (119)
Servlet (17)
SOAP (24)
Testing (50)
Web (19)
XML (301)
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
Â
2017-07-07, 1115👍, 0💬
Popular Posts:
What Is commons-lang3-3.1.jar? commons-lang3-3.1.jar is the JAR file for Apache Commons Lang 3.1, wh...
What is the sax\Counter.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 inst...
JasperReports, the world's most popular open source business intelligence and reporting engine and J...
What Is jms.jar? I heard it's related to JMS (Java Message Service) 1.1? The if you have an jms.jar ...
Xalan-Java, Version 2.7.1, is an XSLT processor for transforming XML documents into HTML, text, or o...