Revert "Bug 251786 - Make XMLContentDescriber INDETERMINATE on parse errors" This reverts commit b97854a13c94a33aa7c3af146710d3ea0c539897. Change-Id: I5f3cb271ae6f848a5aee665d7fc537441e59aee5
diff --git a/bundles/org.eclipse.core.contenttype/src/org/eclipse/core/runtime/content/XMLContentDescriber.java b/bundles/org.eclipse.core.contenttype/src/org/eclipse/core/runtime/content/XMLContentDescriber.java index 9fcbc07..35ca74e 100644 --- a/bundles/org.eclipse.core.contenttype/src/org/eclipse/core/runtime/content/XMLContentDescriber.java +++ b/bundles/org.eclipse.core.contenttype/src/org/eclipse/core/runtime/content/XMLContentDescriber.java
@@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2004, 2020 IBM Corporation and others. + * Copyright (c) 2004, 2010 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -122,7 +122,7 @@ if (fullXMLDecl == null || !fullXMLDecl.booleanValue()) return INDETERMINATE; if (description == null) - return INDETERMINATE; + return VALID; String charset = (String) properties.get(CHARSET); if (description.isRequested(IContentDescription.CHARSET)) { if (charset != null && !isCharsetValid(charset))