Skip to content

Commit

Permalink
8242136: Better XML namespace handling
Browse files Browse the repository at this point in the history
Reviewed-by: lancea, dfuchs, skoivu, rhalade, kravikumar
  • Loading branch information
JoeWang-Java committed Apr 14, 2020
1 parent 343ecd8 commit d7bbb5c
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2006, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
Expand Down Expand Up @@ -111,7 +111,7 @@
* @author Elena Litani IBM
* @author Andy Clark IBM
* @author Neeraj Bajaj, Sun Microsystems, inc.
* @LastModified: Apr 2019
* @LastModified: Apr 2020
*/
public class XMLSchemaValidator
implements XMLComponent, XMLDocumentFilter, FieldActivator, RevalidationHandler, XSElementDeclHelper {
Expand Down Expand Up @@ -1887,7 +1887,7 @@ Augmentations handleStartElement(QName element, XMLAttributes attributes, Augmen

// root element
if (fElementDepth == -1 && fValidationManager.isGrammarFound()) {
if (fSchemaType == null) {
if (fSchemaType == null && !fUseGrammarPoolOnly) {
// schemaType is not specified
// if a DTD grammar is found, we do the same thing as Dynamic:
// if a schema grammar is found, validation is performed;
Expand Down

0 comments on commit d7bbb5c

Please sign in to comment.