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 2002/07/16 18:08:28 UTC

cvs commit: xml-xerces/c/src/xercesc/dom/impl DOMDocumentTypeImpl.cpp

tng         2002/07/16 09:08:28

  Modified:    c/src/xercesc/dom/impl DOMDocumentTypeImpl.cpp
  Log:
  DOM fix: internal subset is incorrectly overwritten instead of being appended
  
  Revision  Changes    Path
  1.9       +6 -2      xml-xerces/c/src/xercesc/dom/impl/DOMDocumentTypeImpl.cpp
  
  Index: DOMDocumentTypeImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMDocumentTypeImpl.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- DOMDocumentTypeImpl.cpp	16 Jul 2002 15:35:44 -0000	1.8
  +++ DOMDocumentTypeImpl.cpp	16 Jul 2002 16:08:27 -0000	1.9
  @@ -314,7 +314,11 @@
   
   const XMLCh * DOMDocumentTypeImpl::getInternalSubset() const
   {
  -    return internalSubset.getRawBuffer();
  +    const XMLCh* subset = internalSubset.getRawBuffer();
  +    if (!XMLString::stringLen(subset))
  +        return 0;
  +    else
  +        return subset;
   }
   
   bool DOMDocumentTypeImpl::isIntSubsetReading() const
  
  
  

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