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/10/25 21:46:15 UTC

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

tng         01/10/25 12:46:15

  Modified:    c/src/parsers SAX2XMLReaderImpl.cpp SAXParser.cpp
  Log:
  Comment outside root element should also be reported.
  
  Revision  Changes    Path
  1.19      +3 -4      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.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- SAX2XMLReaderImpl.cpp	2001/09/12 13:03:43	1.18
  +++ SAX2XMLReaderImpl.cpp	2001/10/25 19:46:15	1.19
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: SAX2XMLReaderImpl.cpp,v $
  + * Revision 1.19  2001/10/25 19:46:15  tng
  + * Comment outside root element should also be reported.
  + *
    * Revision 1.18  2001/09/12 13:03:43  tng
    * [Bug 3155] SAX2 does not offer progressive parse.
    *
  @@ -711,10 +714,6 @@
           // array with a length.
           fLexicalHandler->comment(commentText, XMLString::stringLen(commentText));
      }
  -
  -    // Suppress passing through any comments before the root element.
  -    if (!fElemDepth)
  -        return;
   
       //
       //  OK, if there are any installed advanced handlers,
  
  
  
  1.22      +3 -4      xml-xerces/c/src/parsers/SAXParser.cpp
  
  Index: SAXParser.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/parsers/SAXParser.cpp,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- SAXParser.cpp	2001/08/01 19:11:02	1.21
  +++ SAXParser.cpp	2001/10/25 19:46:15	1.22
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: SAXParser.cpp,v $
  + * Revision 1.22  2001/10/25 19:46:15  tng
  + * Comment outside root element should also be reported.
  + *
    * Revision 1.21  2001/08/01 19:11:02  tng
    * Add full schema constraint checking flag to the samples and the parser.
    *
  @@ -588,10 +591,6 @@
   
   void SAXParser::docComment(const XMLCh* const commentText)
   {
  -    // Suppress passing through any comments before the root element.
  -    if (!fElemDepth)
  -        return;
  -
       //
       //  SAX has no way to report this. But, if there are any installed
       //  advanced handlers, then lets call them with this info.
  
  
  

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