Author: mukulg
Date: Wed May  2 21:24:36 2012
New Revision: 1333216

URL: http://svn.apache.org/viewvc?rev=1333216&view=rev
Log:
reversing previous changes, as per new comments for jira issue XERCESJ-1559

Modified:
    
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java

Modified: 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
URL: 
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java?rev=1333216&r1=1333215&r2=1333216&view=diff
==============================================================================
--- 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
 (original)
+++ 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
 Wed May  2 21:24:36 2012
@@ -2294,14 +2294,6 @@ public class XMLSchemaValidator
         final boolean isSchema11 = (fSchemaVersion == 
Constants.SCHEMA_VERSION_1_1);
         boolean needToPushErrorContext = false;
         
-        if (fCurrentType == null && xsiType != null && fElementDepth == 0) {
-            fXSIErrorReporter.fErrorReporter.reportError(
-                    XSMessageFormatter.SCHEMA_DOMAIN,
-                    "cvc-elt.1.a",
-                    new Object[] { element.rawname },
-                    XMLErrorReporter.SEVERITY_ERROR);  
-        }
-        
         if (fCurrentType == null && xsiType == null) {
             // if this is the validation root, report an error, because
             // we can't find eith decl or type for this element



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@xerces.apache.org
For additional commands, e-mail: commits-h...@xerces.apache.org

Reply via email to