Rudiments
/home/dmuse/src/rudiments/include/rudiments/xmlsax.h
00001 // Copyright (c) 2002 David Muse
00002 // See the COPYING file for more information.
00003 
00004 #ifndef RUDIMENTS_XMLSAX_H
00005 #define RUDIMENTS_XMLSAX_H
00006 
00007 #include <rudiments/private/xmlsaxincludes.h>
00008 
00009 #ifdef RUDIMENTS_NAMESPACE
00010 namespace rudiments {
00011 #endif
00012 
00013 class xmlsaxprivate;
00014 
00018 class RUDIMENTS_DLLSPEC xmlsax {
00019         public:
00020 
00022                 xmlsax();
00023 
00025                 virtual ~xmlsax();
00026 
00027 
00032                 bool            parseFile(const char *filename);
00033 
00038                 bool            parseString(const char *string);
00039 
00042                 const char      *getError();
00043 
00044         protected:
00045 
00047                 virtual bool    tagStart(const char *name);
00048 
00050                 virtual bool    attributeName(const char *name);
00051 
00053                 virtual bool    attributeValue(const char *value);
00054 
00056                 virtual bool    text(const char *string);
00057 
00059                 virtual bool    tagEnd(const char *name);
00060 
00062                 virtual bool    comment(const char *string);
00063 
00065                 virtual bool    cdata(const char *string);
00066 
00067         #include <rudiments/private/xmlsax.h>
00068 };
00069 
00070 #ifdef RUDIMENTS_NAMESPACE
00071 }
00072 #endif
00073 
00074 #endif