peiyongz    2003/12/16 09:18:50

  Modified:    c/src/xercesc/validators/schema ComplexTypeInfo.cpp
  Log:
  don't expand ContextSpecNode when deserilized
  
  Revision  Changes    Path
  1.21      +3 -19     xml-xerces/c/src/xercesc/validators/schema/ComplexTypeInfo.cpp
  
  Index: ComplexTypeInfo.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/schema/ComplexTypeInfo.cpp,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- ComplexTypeInfo.cpp       20 Nov 2003 18:05:16 -0000      1.20
  +++ ComplexTypeInfo.cpp       16 Dec 2003 17:18:50 -0000      1.21
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.21  2003/12/16 17:18:50  peiyongz
  + * don't expand ContextSpecNode when deserilized
  + *
    * Revision 1.20  2003/11/20 18:05:16  knoaman
    * PSVI: Use a copy of the content spec node when creating the content model.
    *
  @@ -959,13 +962,6 @@
   
           serEng<<fBaseComplexTypeInfo;
           serEng<<fContentSpec;
  -        // we need to save a flag to specify
  -        // if this content spce has been expanded or not
  -        if (fContentModel)
  -            serEng<<true;
  -        else
  -            serEng<<false;
  -
           serEng<<fAttWildCard;
           serEng<<fAttList;
   
  @@ -1013,18 +1009,6 @@
   
           serEng>>fBaseComplexTypeInfo;
           serEng>>fContentSpec;
  -
  -        //read the expanded flag
  -        bool expanded = false;
  -        serEng>>expanded;
  -        if (expanded)
  -        {
  -            fContentModel = buildContentModel(fContentSpec);
  -        }
  -        //else
  -        // if contentSpec has NOT been expanded yet,
  -        // leave the building to makeContentModel
  -
           serEng>>fAttWildCard;
           serEng>>fAttList;
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to