[133093] Fixed XML validator to validate XML documents that reference a schema with no target namespace. Added a test to the XML validation automated test bucket for this case.
diff --git a/bundles/org.eclipse.wst.xml.core/src-validation/org/eclipse/wst/xml/core/internal/validation/ValidatorHelper.java b/bundles/org.eclipse.wst.xml.core/src-validation/org/eclipse/wst/xml/core/internal/validation/ValidatorHelper.java index 8ab5667..8fe867a 100644 --- a/bundles/org.eclipse.wst.xml.core/src-validation/org/eclipse/wst/xml/core/internal/validation/ValidatorHelper.java +++ b/bundles/org.eclipse.wst.xml.core/src-validation/org/eclipse/wst/xml/core/internal/validation/ValidatorHelper.java
@@ -248,11 +248,13 @@ location = getSchemaLocationForNamespace(schemaLoc, rootElementNamespace); } } - if (rootElementNamespace != null) + if (rootElementNamespace == null) { - location = URIResolverPlugin.createResolver().resolve(baseURI, rootElementNamespace, location); - location = URIResolverPlugin.createResolver().resolvePhysicalLocation(baseURI, rootElementNamespace, location); - } + rootElementNamespace = ""; + } + + location = URIResolverPlugin.createResolver().resolve(baseURI, rootElementNamespace, location); + location = URIResolverPlugin.createResolver().resolvePhysicalLocation(baseURI, rootElementNamespace, location); if (location != null) {