Rudiments
/home/dmuse/src/rudiments/include/rudiments/xmldom.h
00001 // Copyright (c) 2002 David Muse
00002 // See the COPYING file for more information.
00003 
00004 #ifndef RUDIMENTS_XMLDOM_H
00005 #define RUDIMENTS_XMLDOM_H
00006 
00007 #include <rudiments/private/xmldomincludes.h>
00008 
00009 #ifdef RUDIMENTS_NAMESPACE
00010 namespace rudiments {
00011 #endif
00012 
00013 class xmldomprivate;
00014 
00016 class RUDIMENTS_DLLSPEC xmldom : public xmlsax {
00017         public:
00018 
00020                 xmldom();
00021 
00023                 virtual ~xmldom();
00024 
00026                 bool    parseFile(const char *filename);
00027 
00029                 bool    parseString(const char *string);
00030 
00032                 xmldomnode      *getRootNode() const;
00033 
00036                 void    createRootNode();
00037 
00040                 bool    writeFile(const char *filename, mode_t perms) const;
00041 
00042         #include <rudiments/private/xmldom.h>
00043 };
00044 
00045 #ifdef RUDIMENTS_NAMESPACE
00046 }
00047 #endif
00048 
00049 #endif