}
}
String elementName = getAttribute(attrs, "name");
String elementNamespace = getAttribute(attrs, "targetNamespace");
String type = getAttribute(attrs, "type");
Type datatype = (type != null) ?
parseSimpleType(asQName(type, node)) : null;
int scope = (parent == null) ?
XMLSchema.GLOBAL :
XMLSchema.LOCAL;
String def = getAttribute(attrs, "default");