From c09b06d5e765955ea41c6b02891390ed6a714e55 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 1 Oct 2007 15:18:21 +0000 Subject: Now the resume is generated using a format string. --- server/src/xmlparser.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'server/src/xmlparser.cc') 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()); } } -- cgit v1.2.3