From: Adam Dickmeiss Date: Fri, 22 Jan 2010 22:02:46 +0000 (+0100) Subject: XML Include: do not substitute root node X-Git-Tag: v4.0.1~9^2~1 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=f51b5b23754da0f2446ade88c176939baffc64f9;p=yaz-moved-to-github.git XML Include: do not substitute root node Do not substitute root node .. The node parameter is simply xmlNode* - not xmlNode **. --- diff --git a/src/xml_include.c b/src/xml_include.c index db5f13e..add66d9 100644 --- a/src/xml_include.c +++ b/src/xml_include.c @@ -133,7 +133,7 @@ static int config_include_src(yaz_xml_include_t config, xmlNode **np, static int process_config_includes(yaz_xml_include_t config, xmlNode *n) { - for (; n; n = n->next) + for (n = n->children; n; n = n->next) { if (n->type == XML_ELEMENT_NODE) { @@ -152,7 +152,7 @@ static int process_config_includes(yaz_xml_include_t config, xmlNode *n) } else { - if (process_config_includes(config, n->children)) + if (process_config_includes(config, n)) return -1; } }