ulxr_xmlparse.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                ulxr_xmlparse.h  -  parse xml files
00003                              -------------------
00004     begin                : Wed Mar 13 2002
00005     copyright            : (C) 2002-2007 by Ewald Arnold
00006     email                : ulxmlrpcpp@ewald-arnold.de
00007 
00008     $Id: ulxr_xmlparse.h 940 2006-12-30 18:22:05Z ewald-arnold $
00009 
00010  ***************************************************************************/
00011 
00012 /**************************************************************************
00013  *
00014  * This program is free software; you can redistribute it and/or modify
00015  * it under the terms of the GNU Lesser General Public License as
00016  * published by the Free Software Foundation; either version 2 of the License,
00017  * or (at your option) any later version.
00018  *
00019  * This program is distributed in the hope that it will be useful,
00020  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00021  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00022  * GNU General Public License for more details.
00023  *
00024  * You should have received a copy of the GNU Lesser General Public License
00025  * along with this program; if not, write to the Free Software
00026  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00027  *
00028  ***************************************************************************/
00029 
00030 #ifndef ULXR_XMLPARSE
00031 #define ULXR_XMLPARSE
00032 
00033 #include <ulxmlrpcpp/ulxmlrpcpp.h>  // always first header
00034 #include <ulxmlrpcpp/ulxr_expatwrap.h>
00035 
00036 
00037 namespace ulxr {
00038 
00039 
00043 class ULXR_API_DECL0 XmlParser : public ExpatWrapper
00044 {
00045  public:
00046 
00049    XmlParser();
00050 
00051  protected:
00052 
00057    void assertEndElement(const char *current, const char *expected);
00058 
00066    bool testStartElement(const XML_Char *name, const XML_Char **atts);
00067 
00074    bool testEndElement(const XML_Char *name);
00075 
00076  private:
00077 
00084    virtual void charData(const XML_Char *s, int len);
00085 };
00086 
00087 
00088 }  // namespace ulxr
00089 
00090 
00091 #endif // ULXR_XMLPARSE

Generated on Sun Aug 19 20:08:58 2007 for ulxmlrpcpp by  doxygen 1.5.1