while(otherInlineSchemas.hasNext())
{
if(((InlinedSchema)otherInlineSchemas.next()).getSchemaDefinition().getElementByName(elementName) != null)
{
// Duplicate element defined.
errorReporter.reportError(new ErrorLocatorImpl(), "Schema-1073", new Object[]{elementName, ns}, ErrorReporter.SEVERITY_ERROR);
isValid = false;
}
}
}
XmlSchemaObjectTable types = iSchema.getSchemaDefinition().getSchemaTypes();
Iterator typeNames = types.getNames();
while(typeNames.hasNext())
{
QName typeName = (QName)typeNames.next();
Iterator otherInlineSchemas = schemaList.iterator();
while(otherInlineSchemas.hasNext())
{
if(((InlinedSchema)otherInlineSchemas.next()).getSchemaDefinition().getTypeByName(typeName) != null)
{
// Duplicate type defined.
errorReporter.reportError(new ErrorLocatorImpl(), "Schema-1073b", new Object[]{typeName, ns}, ErrorReporter.SEVERITY_ERROR);
isValid = false;
}
}
}