summaryrefslogtreecommitdiff
path: root/server/src/xmlparser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/xmlparser.cc')
-rw-r--r--server/src/xmlparser.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/server/src/xmlparser.cc b/server/src/xmlparser.cc
index 31ffbed..6ef7338 100644
--- a/server/src/xmlparser.cc
+++ b/server/src/xmlparser.cc
@@ -82,10 +82,12 @@ static void start_hndl(void *p, const char *el, const char **attr)
}
if(name == "field") {
- Field f;
- f.name = attributes["name"];
- f.value = attributes["value"];
- transaction->commits.back().fields.push_back(f);
+ // Field f;
+ // f.name = attributes["name"];
+ // f.value = attributes["value"];
+ // transaction->commits.back().fields.push_back(f);
+ transaction->commits.back().fields[attributes["name"]] = attributes["value"];
+ // printf("[%s]=[%s]\n", f.name.c_str(), f.value.c_str());
}
}