You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by kn...@apache.org on 2002/05/07 19:45:52 UTC

cvs commit: xml-xerces/c/src/xercesc/sax2 XMLReaderFactory.hpp

knoaman     02/05/07 10:45:52

  Modified:    c/doc    program-sax2.xml
               c/src/xercesc/sax2 XMLReaderFactory.hpp
  Log:
  SAX2 documentation update.
  
  Revision  Changes    Path
  1.7       +6 -0      xml-xerces/c/doc/program-sax2.xml
  
  Index: program-sax2.xml
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/doc/program-sax2.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- program-sax2.xml	7 Mar 2002 15:53:40 -0000	1.6
  +++ program-sax2.xml	7 May 2002 17:45:52 -0000	1.7
  @@ -37,19 +37,25 @@
           parser->parse(xmlFile);
       }
       catch (const XMLException& toCatch) {
  +        delete parser;
           cout << "Exception message is: \n"
                << DOMString(toCatch.getMessage()) << "\n" ;
           return -1;
       }
       catch (const SAXParseException& toCatch) {
  +        delete parser;
           cout << "Exception message is: \n"
                << DOMString(toCatch.getMessage()) << "\n" ;
           return -1;
       }
       catch (...) {
  +        delete parser;
           cout << "Unexpected Exception \n" ;
           return -1;
       }
  +
  +    delete parser;
  +    return 0;
   }</source>
       </s2>
   
  
  
  
  1.2       +12 -0     xml-xerces/c/src/xercesc/sax2/XMLReaderFactory.hpp
  
  Index: XMLReaderFactory.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/sax2/XMLReaderFactory.hpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XMLReaderFactory.hpp	1 Feb 2002 22:22:09 -0000	1.1
  +++ XMLReaderFactory.hpp	7 May 2002 17:45:52 -0000	1.2
  @@ -56,8 +56,11 @@
   
   /*
    * $Log: XMLReaderFactory.hpp,v $
  - * Revision 1.1  2002/02/01 22:22:09  peiyongz
  - * Initial revision
  + * Revision 1.2  2002/05/07 17:45:52  knoaman
  + * SAX2 documentation update.
  + *
  + * Revision 1.1.1.1  2002/02/01 22:22:09  peiyongz
  + * sane_include
    *
    * Revision 1.3  2000/08/30 22:21:37  andyh
    * Unix Build script fixes.  Clean up some UNIX compiler warnings.
  @@ -79,6 +82,15 @@
   #include <xercesc/parsers/SAX2XMLReaderImpl.hpp>
   #include <xercesc/sax/SAXException.hpp>
   
  +/**
  +  * Creates a SAX2 parser (SAX2XMLReader).
  +  *
  +  * <p>Note: The parser object returned by XMLReaderFactory is owned by the
  +  * calling users, and it's the responsiblity of the users to delete that
  +  * parser object, once they no longer need it.</p>
  +  *
  +  * @see SAX2XMLReader#SAX2XMLReader
  +  */
   class SAX2_EXPORT XMLReaderFactory
   {
   protected:                // really should be private, but that causes compiler warnings.
  
  
  

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