tng         2003/01/20 14:01:38

  Modified:    c/src/xercesc/validators/DTD DTDScanner.cpp
  Log:
  Need to check text decl when expanding PE
  
  Revision  Changes    Path
  1.22      +8 -0      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.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- DTDScanner.cpp    16 Jan 2003 21:30:14 -0000      1.21
  +++ DTDScanner.cpp    20 Jan 2003 22:01:38 -0000      1.22
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.22  2003/01/20 22:01:38  tng
  + * Need to check text decl when expanding PE
  + *
    * Revision 1.21  2003/01/16 21:30:14  tng
    * [Bug 16151] Memory leak in DTDScanner with ill-formed DTD declaration.  Fix by 
David Bertoni.
    *
  @@ -497,6 +500,11 @@
               // If we have an entity handler, tell it we are ending this entity
               if (entHandler)
                   entHandler->endInputSource(*srcUsed);
  +        }
  +        else {
  +            // If it starts with the XML string, then parse a text decl
  +            if (fScanner->checkXMLDecl(true))
  +                scanTextDecl();
           }
       }
        else
  
  
  

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

Reply via email to