You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2001/10/09 15:27:36 UTC

cvs commit: xml-xerces/c/src/internal XMLScanner.cpp

tng         01/10/09 06:27:36

  Modified:    c/src/internal XMLScanner.cpp
  Log:
  Schema: need to reset validation flag with empty node.
  
  Revision  Changes    Path
  1.67      +8 -1      xml-xerces/c/src/internal/XMLScanner.cpp
  
  Index: XMLScanner.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/internal/XMLScanner.cpp,v
  retrieving revision 1.66
  retrieving revision 1.67
  diff -u -r1.66 -r1.67
  --- XMLScanner.cpp	2001/09/14 14:50:22	1.66
  +++ XMLScanner.cpp	2001/10/09 13:27:35	1.67
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: XMLScanner.cpp,v 1.66 2001/09/14 14:50:22 tng Exp $
  + * $Id: XMLScanner.cpp,v 1.67 2001/10/09 13:27:35 tng Exp $
    */
   
   
  @@ -2650,6 +2650,10 @@
           // If the elem stack is empty, then it was an empty root
           if (isRoot)
               gotData = false;
  +        else {
  +            // Restore the validation flag
  +            fValidate = fElemStack.getValidationFlag();
  +        }
       }
   
       //
  @@ -3176,6 +3180,9 @@
               }
   
               fValidator->setGrammar(fGrammar);
  +
  +            // Restore the validation flag
  +            fValidate = fElemStack.getValidationFlag();
           }
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org