public static void main (String args[]) throws Exception {
DefaultHandler handler = new DefaultHandler();
XSGrammarResolver xsg = new XSGrammarResolver();
XSDHandler me = new XSDHandler(xsg, new SubstitutionGroupHandler(xsg));
XMLErrorReporter rep = new XMLErrorReporter();
rep.putMessageFormatter(XSMessageFormatter.SCHEMA_DOMAIN, new XSMessageFormatter());
me.reset(rep, new EntityResolverWrapper(new org.apache.xerces.impl.xs.traversers.XSDHandler.DummyResolver()), new SymbolTable());
me.parseSchema(args[0], args[1]);
Enumeration types = me.fUnparsedTypeRegistry.keys();
String name = null;
while (types.hasMoreElements()) {