Yes, it's a QName and there is only one such element in the schema.
At the moment I use this quick hack with "removeAt(i)" and without
"equals"-call for removing elements, but it doesn't feel so good.
for (int i = 0; i < schema.getItems().getCount(); i++) {
XmlSchemaObject schemaObject = schema.getItems().getItem(i);
if (schemaObject instanceof XmlSchemaElement)
{
XmlSchemaElement schemaElement = (XmlSchemaElement)
schemaObject;
if
(!acceptableElements.contains(schemaElement.getQName().getLocalPart())) {
//Achtung, schema.getItems().remove(wrongElement)
funktioniert nicht
//und loescht irgendein element
schema.getItems().removeAt(i);
//indices have changed
i--;
}
}
}
regards
ronny
-------- Original-Nachricht --------
> What is the elementName here ? Is it the QName for an element ?
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger