summaryrefslogtreecommitdiffstats
path: root/database
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2008-12-17 09:52:36 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2008-12-17 09:52:36 +0100
commitf3f0b67de81f831a4014c134e4aa4e80cc848a16 (patch)
treedd8c51db3c66e2e22862165774ee876777d29ebe /database
parent4f5bcdbd99fe9bfb3af5bdfa2a8bd973aa9a5bad (diff)
Changed eDBxmlMapping(...) function to make use of the new eurephiaXML_getRoot(...) function
Diffstat (limited to 'database')
-rw-r--r--database/eurephiadb_mapping.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/database/eurephiadb_mapping.c b/database/eurephiadb_mapping.c
index 5aa3601..1532443 100644
--- a/database/eurephiadb_mapping.c
+++ b/database/eurephiadb_mapping.c
@@ -28,6 +28,7 @@
#define EUREPHIADB_MAPPING_C
#include <eurephia_context.h>
#include <eurephia_admin_struct.h>
+#include <eurephia_xml.h>
#include <eurephiadb_mapping.h>
#include <eurephia_nullsafe.h>
#include <passwd.h>
@@ -116,7 +117,8 @@ eDBfieldMap *eDBxmlMapping(eurephiaCTX *ctx, eDBfieldMap *dbmap, const char *tbl
map = eDBgetTableFieldMapping(dbmap->tableid);
// Loop through the XML, and register the different values to the system map fields
- for( nptr = xmlDocGetRootElement(xmlmap); nptr != NULL; ) {
+ nptr = eurephiaXML_getRoot(ctx, xmlmap, "fieldMapping", 1);
+ while( nptr != NULL ) {
// We are only interested in element nodes
if( (nptr->type != XML_ELEMENT_NODE) ) {
nptr = nptr->next;