= new SAXBuilder(
"com.volantis.xml.xerces.parsers.SAXParser",
false);
Document document = builder.build(schema);
SchemaParser parser = new SchemaParser(new Factory());
parser.addProcessingInstructionTarget("deprecated",
new DeprecatedTarget());
parser.addProcessingInstructionTarget("papi",
new PAPITarget());
List schemaObjects = parser.parse(document);
initialiseExtraInfo(schemaObjects, parser.getScope());
schemaPreamble();
for (Iterator i = schemaObjects.iterator(); i.hasNext();) {
SchemaObject object = (SchemaObject) i.next();
processSchemaObject(object);
}
schemaPostamble();
writeTagLibraries();
generateMarlinElementHandlerFactory(parser.getScope());
} catch (IOException ioe) {
ioe.printStackTrace();
return;
} catch (JDOMException jdome) {
jdome.printStackTrace();