From cf62ef124dfa891357f039b83973642cc04f7773 Mon Sep 17 00:00:00 2001 From: Alberto Massari <amassari@apache.org> Date: Thu, 30 Sep 2004 11:00:07 +0000 Subject: [PATCH] Fix for jira# 538 git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@176119 13f79535-47bb-0310-9956-ffa450edef68 --- src/xercesc/validators/schema/TraverseSchema.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xercesc/validators/schema/TraverseSchema.cpp b/src/xercesc/validators/schema/TraverseSchema.cpp index 330f288af..24020f1b2 100644 --- a/src/xercesc/validators/schema/TraverseSchema.cpp +++ b/src/xercesc/validators/schema/TraverseSchema.cpp @@ -5856,6 +5856,10 @@ void TraverseSchema::checkMinMax(ContentSpecNode* const specNode, } } + if (minOccurs == 0 && maxOccurs == 0){ + return; + } + // Constraint checking for min/max value if (!isMaxUnbounded) { @@ -5880,10 +5884,6 @@ void TraverseSchema::checkMinMax(ContentSpecNode* const specNode, } } - if (minOccurs == 0 && maxOccurs == 0){ - return; - } - // Constraint checking for 'all' content bool isAllElement = (allContextFlag == All_Element); bool isAllGroup = (allContextFlag == All_Group); -- GitLab