Rudiments
xmldom.h
1 // Copyright (c) 2002 David Muse
2 // See the COPYING file for more information.
3 
4 #ifndef RUDIMENTS_XMLDOM_H
5 #define RUDIMENTS_XMLDOM_H
6 
7 #include <rudiments/private/xmldomincludes.h>
8 
9 #ifdef RUDIMENTS_NAMESPACE
10 namespace rudiments {
11 #endif
12 
13 class xmldomprivate;
14 
16 class RUDIMENTS_DLLSPEC xmldom : public xmlsax {
17  public:
18 
20  xmldom();
21 
23  virtual ~xmldom();
24 
26  bool parseFile(const char *filename);
27 
29  bool parseString(const char *string);
30 
32  xmldomnode *getRootNode() const;
33 
36  void createRootNode();
37 
40  bool writeFile(const char *filename, mode_t perms) const;
41 
42  #include <rudiments/private/xmldom.h>
43 };
44 
45 #ifdef RUDIMENTS_NAMESPACE
46 }
47 #endif
48 
49 #endif