knoaman     2002/12/04 13:57:32

  Modified:    c/src/xercesc/internal WFXMLScanner.cpp
  Log:
  Bypass the doctype declaration.
  
  Revision  Changes    Path
  1.2       +10 -1     xml-xerces/c/src/xercesc/internal/WFXMLScanner.cpp
  
  Index: WFXMLScanner.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/internal/WFXMLScanner.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- WFXMLScanner.cpp  4 Dec 2002 02:01:29 -0000       1.1
  +++ WFXMLScanner.cpp  4 Dec 2002 21:57:32 -0000       1.2
  @@ -757,6 +757,15 @@
   {
       // Just skips over it
       // REVISIT: Should we issue a warning
  +    static const XMLCh doctypeIE[] =
  +    {
  +            chOpenSquare, chCloseAngle, chNull
  +    };
  +    XMLCh nextCh = fReaderMgr.skipUntilIn(doctypeIE);
  +
  +    if (nextCh == chOpenSquare)
  +        fReaderMgr.skipPastChar(chCloseSquare);
  +
       fReaderMgr.skipPastChar(chCloseAngle);
   }
   
  
  
  

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

Reply via email to