You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mu...@apache.org on 2010/03/06 18:06:13 UTC
svn commit: r919800 -
/xerces/java/branches/xml-schema-1.1-dev/samples/xs/XSSerializer.java
Author: mukulg
Date: Sat Mar 6 17:06:13 2010
New Revision: 919800
URL: http://svn.apache.org/viewvc?rev=919800&view=rev
Log:
doing some minor improvements to comments and little refactoring
Modified:
xerces/java/branches/xml-schema-1.1-dev/samples/xs/XSSerializer.java
Modified: xerces/java/branches/xml-schema-1.1-dev/samples/xs/XSSerializer.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/samples/xs/XSSerializer.java?rev=919800&r1=919799&r2=919800&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/samples/xs/XSSerializer.java (original)
+++ xerces/java/branches/xml-schema-1.1-dev/samples/xs/XSSerializer.java Sat Mar 6 17:06:13 2010
@@ -82,8 +82,7 @@
/*
* "Main method"
*
- * An entry point to test this utility. e.g, command line:
- * java XSSerializer -xsd11 schema.xsd
+ * An entry point to test this utility.
*
* The XSModel could be synthesized by any means (for example, by direct
* API calls to Xerces Schema API, methods) -- in which case, the method
@@ -91,11 +90,9 @@
*/
public static void main(String[] args) {
- if (args.length == 0 || args.length > 2) {
- System.err.println("Usage:");
- System.err.println("java XSSerializer [-xsd11] schema.xsd");
- System.err.println("-xsd11 Turn on XSD 1.1 support");
- System.exit(-1);
+ if (args.length == 0 || args.length > 2) {
+ printUsage();
+ System.exit(-1);
}
XMLSchemaLoader xsLoader = new XMLSchemaLoader();
@@ -122,6 +119,12 @@
}
}
+ private static void printUsage() {
+ System.err.println("Usage:");
+ System.err.println("java xs.XSSerializer [-xsd11] schema.xsd");
+ System.err.println("-xsd11 Turn on XSD 1.1 support");
+ }
+
/*
* Serialize an XML Schema, XSModel object to the standard output.
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org