summaryrefslogtreecommitdiff
path: root/src/saxparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/saxparser.h')
-rw-r--r--src/saxparser.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/saxparser.h b/src/saxparser.h
index 8415b6b..c3700bf 100644
--- a/src/saxparser.h
+++ b/src/saxparser.h
@@ -31,6 +31,8 @@
#include <map>
#include <expat.h>
+typedef std::map< std::string, std::string> attr_t;
+
class SAXParser {
public:
SAXParser();
@@ -39,8 +41,7 @@ public:
int parse();
virtual void characterData(std::string &data) {}
- virtual void startTag(std::string name,
- std::map< std::string, std::string> attributes) {}
+ virtual void startTag(std::string name, attr_t attr) {}
virtual void endTag(std::string name) {}
virtual void parseError(char *buf, size_t len, std::string error, int lineno);