while (iterator.hasNext())
{
// Get next ext. element
extElement = (ExtensibilityElement) iterator.next();
// If this is an unknown ext. element, then see if it is a schema element
TargetNamespaceProcessor tnsProcessor = null;
if (extElement instanceof Schema)
{
tnsProcessor = new TargetNamespaceProcessor(definition.getDocumentBaseURI());
if ((nextList =
tnsProcessor.processAllSchema(
((Schema) extElement).getElement()))
!= null)
if (list == null)
list = new Vector();
list.addAll(nextList);