tag name completion fixed

This commit is contained in:
Dmitry Avdeev
2011-12-20 14:23:07 +04:00
parent 5e1fefe878
commit 66a6de502a
@@ -210,10 +210,10 @@ public class DefaultXmlExtension extends XmlExtension {
String location = null;
if (namespace.length() > 0) {
if (prefixProvider != null) {
final Set<String> strings = prefixProvider.getLocations(namespace, file);
if (strings != null && strings.size() > 0) {
location = strings.iterator().next();
for (XmlSchemaProvider provider : providers) {
Set<String> locations = provider.getLocations(namespace, file);
if (locations != null && !locations.isEmpty()) {
location = locations.iterator().next();
}
}
}