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/12/21 19:03:25 UTC

cvs commit: xml-xerces/c/src/parsers SAX2XMLReaderImpl.cpp

tng         01/12/21 10:03:25

  Modified:    c/src/parsers SAX2XMLReaderImpl.cpp
  Log:
  [Bug 1833] LexicalHandler::startDTD not called correctly.
  
  Revision  Changes    Path
  1.21      +7 -0      xml-xerces/c/src/parsers/SAX2XMLReaderImpl.cpp
  
  Index: SAX2XMLReaderImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/parsers/SAX2XMLReaderImpl.cpp,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- SAX2XMLReaderImpl.cpp	2001/11/20 18:51:44	1.20
  +++ SAX2XMLReaderImpl.cpp	2001/12/21 18:03:25	1.21
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: SAX2XMLReaderImpl.cpp,v $
  + * Revision 1.21  2001/12/21 18:03:25  tng
  + * [Bug 1833] LexicalHandler::startDTD not called correctly.
  + *
    * Revision 1.20  2001/11/20 18:51:44  tng
    * Schema: schemaLocation and noNamespaceSchemaLocation to be specified outside the instance document.  New methods setExternalSchemaLocation and setExternalNoNamespaceSchemaLocation are added (for SAX2, two new properties are added).
    *
  @@ -568,6 +571,10 @@
   void SAX2XMLReaderImpl::setLexicalHandler(LexicalHandler* const handler)
   {
       fLexicalHandler = handler;
  +    if (fLexicalHandler)
  +        fScanner->setDocTypeHandler(this);
  +    else
  +        fScanner->setDocTypeHandler(0);
   }
   
   
  
  
  

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