You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by kn...@apache.org on 2002/07/26 15:33:45 UTC

cvs commit: xml-xerces/c/src/xercesc/validators/DTD DTDScanner.cpp

knoaman     2002/07/26 06:33:44

  Modified:    c/src/xercesc/validators/DTD DTDScanner.cpp
  Log:
  Public/System id for notations should be stored as NULL if missing.
  
  Revision  Changes    Path
  1.8       +7 -2      xml-xerces/c/src/xercesc/validators/DTD/DTDScanner.cpp
  
  Index: DTDScanner.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/DTD/DTDScanner.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- DTDScanner.cpp	11 Jul 2002 18:39:48 -0000	1.7
  +++ DTDScanner.cpp	26 Jul 2002 13:33:44 -0000	1.8
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.8  2002/07/26 13:33:44  knoaman
  + * Public/System id for notations should be stored as NULL if missing.
  + *
    * Revision 1.7  2002/07/11 18:39:48  knoaman
    * Access entities through the DTDGrammar instead of the scanner.
    *
  @@ -3329,11 +3332,13 @@
        else
       {
           // Fill in a new notation declaration and add it to the pool
  +        const XMLCh* publicId = bbPubId.getRawBuffer();
  +        const XMLCh* systemId = bbSysId.getRawBuffer();
           decl = new XMLNotationDecl
           (
               bbName.getRawBuffer()
  -            , bbPubId.getRawBuffer()
  -            , bbSysId.getRawBuffer()
  +            , (*publicId) ? publicId : 0
  +            , (*systemId) ? systemId : 0
           );
           fDTDGrammar->putNotationDecl(decl);
       }
  
  
  

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