in xmlschema-core/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java [1512:1539]
private void handleSchemaElementChild(Element schemaEl, Element el) {
if (el.getLocalName().equals("simpleType")) {
XmlSchemaType type = handleSimpleType(currentSchema, el, schemaEl, true);
collection.resolveType(type.getQName(), type);
} else if (el.getLocalName().equals("complexType")) {
XmlSchemaType type = handleComplexType(currentSchema, el, schemaEl, true);
collection.resolveType(type.getQName(), type);
} else if (el.getLocalName().equals("element")) {
handleElement(currentSchema, el, schemaEl, true);
} else if (el.getLocalName().equals("include")) {
handleInclude(currentSchema, el, schemaEl);
} else if (el.getLocalName().equals("import")) {
handleImport(currentSchema, el, schemaEl);
} else if (el.getLocalName().equals("group")) {
handleGroup(currentSchema, el, schemaEl);
} else if (el.getLocalName().equals("attributeGroup")) {
handleAttributeGroup(currentSchema, el, schemaEl);
} else if (el.getLocalName().equals("attribute")) {
handleAttribute(currentSchema, el, schemaEl, true);
} else if (el.getLocalName().equals("redefine")) {
handleRedefine(currentSchema, el, schemaEl);
} else if (el.getLocalName().equals("notation")) {
handleNotation(currentSchema, el);
} else if (el.getLocalName().equals("annotation")) {
XmlSchemaAnnotation annotation = handleAnnotation(el);
currentSchema.setAnnotation(annotation);
}
}