tng         2002/08/19 07:40:31

  Modified:    c/src/xercesc/validators/DTD DTDScanner.cpp
  Log:
  Fix: public id / system id in entity decl should be null if empty
  
  Revision  Changes    Path
  1.9       +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.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- DTDScanner.cpp    26 Jul 2002 13:33:44 -0000      1.8
  +++ DTDScanner.cpp    19 Aug 2002 14:40:31 -0000      1.9
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.9  2002/08/19 14:40:31  tng
  + * Fix: public id / system id in entity decl should be null if empty
  + *
    * Revision 1.8  2002/07/26 13:33:44  knoaman
    * Public/System id for notations should be stored as NULL if missing.
    *
  @@ -2262,8 +2265,10 @@
           return false;
   
       // Fill in the id fields of the decl with the info we got
  -    decl.setPublicId(bbPubId.getRawBuffer());
  -    decl.setSystemId(bbSysId.getRawBuffer());
  +    const XMLCh* publicId = bbPubId.getRawBuffer();
  +    const XMLCh* systemId = bbSysId.getRawBuffer();        
  +    decl.setPublicId((*publicId) ? publicId : 0);
  +    decl.setSystemId((*systemId) ? systemId : 0);
   
       // If its a PE decl, we are done
       bool gotSpaces = checkForPERef(false, false, true);
  
  
  

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

Reply via email to