partvalid = true;
}
} else {
Iterator ite = schemas.iterator();
while (ite.hasNext()) {
XSModel schema = (XSModel)ite.next();
if (schema != null && isElement && schema.getElementDeclaration(name, namespace) != null) {
partvalid = true;
break;
}
if (schema != null && !isElement && schema.getTypeDefinition(name, namespace) != null) {
partvalid = true;
break;
}
}
}