summaryrefslogtreecommitdiff
path: root/server/src/xmlparser.cc
diff options
context:
space:
mode:
authordeva <deva>2007-10-01 15:18:21 +0000
committerdeva <deva>2007-10-01 15:18:21 +0000
commitc09b06d5e765955ea41c6b02891390ed6a714e55 (patch)
treeb90a1a919fd086146256a4ef5ecc44faa2dd5c51 /server/src/xmlparser.cc
parent1890cff193f6e5c10c7581b0767bbb5ac91f8cc7 (diff)
Now the resume is generated using a format string.
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());
}
}