Rudiments
xmlsax.h
1 // Copyright (c) 2002 David Muse
2 // See the COPYING file for more information.
3 
4 #ifndef RUDIMENTS_XMLSAX_H
5 #define RUDIMENTS_XMLSAX_H
6 
7 #include <rudiments/private/xmlsaxincludes.h>
8 
9 #ifdef RUDIMENTS_NAMESPACE
10 namespace rudiments {
11 #endif
12 
13 class xmlsaxprivate;
14 
18 class RUDIMENTS_DLLSPEC xmlsax {
19  public:
20 
22  xmlsax();
23 
25  virtual ~xmlsax();
26 
27 
32  bool parseFile(const char *filename);
33 
38  bool parseString(const char *string);
39 
42  const char *getError();
43 
44  protected:
45 
47  virtual bool tagStart(const char *name);
48 
50  virtual bool attributeName(const char *name);
51 
53  virtual bool attributeValue(const char *value);
54 
56  virtual bool text(const char *string);
57 
59  virtual bool tagEnd(const char *name);
60 
62  virtual bool comment(const char *string);
63 
65  virtual bool cdata(const char *string);
66 
67  #include <rudiments/private/xmlsax.h>
68 };
69 
70 #ifdef RUDIMENTS_NAMESPACE
71 }
72 #endif
73 
74 #endif