summaryrefslogtreecommitdiffstats
path: root/lasso/xml
diff options
context:
space:
mode:
authorNicolas Clapies <nclapies@entrouvert.com>2004-12-22 22:09:43 +0000
committerNicolas Clapies <nclapies@entrouvert.com>2004-12-22 22:09:43 +0000
commit2d355c143fa18621491bb941908bf9bfd8d0dafc (patch)
tree65c50407b4596b314f30e10ecfc71596156c4849 /lasso/xml
parent163b379b6e28038206b717f281502a3fc19f29bb (diff)
downloadlasso-2d355c143fa18621491bb941908bf9bfd8d0dafc.tar.gz
lasso-2d355c143fa18621491bb941908bf9bfd8d0dafc.tar.xz
lasso-2d355c143fa18621491bb941908bf9bfd8d0dafc.zip
Updated get_xmlNode().
Diffstat (limited to 'lasso/xml')
-rw-r--r--lasso/xml/dst_query_response.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lasso/xml/dst_query_response.c b/lasso/xml/dst_query_response.c
index 868c0c4b..a3ca0f44 100644
--- a/lasso/xml/dst_query_response.c
+++ b/lasso/xml/dst_query_response.c
@@ -71,9 +71,8 @@ static LassoNodeClass *parent_class = NULL;
static void
insure_namespace(xmlNode *xmlnode, xmlNs *ns)
{
- xmlNode *t;
+ xmlNode *t = xmlnode->children;
- t = xmlnode->children;
xmlSetNs(xmlnode, ns);
while (t) {
if (t->type == XML_ELEMENT_NODE && t->ns == NULL)
@@ -89,7 +88,7 @@ get_xmlNode(LassoNode *node, gboolean lasso_dump)
xmlNs *ns;
xmlnode = parent_class->get_xmlNode(node, lasso_dump);
- ns = xmlNewNs(NULL, LASSO_DST_QUERY_RESPONSE(node)->hrefServiceType,
+ ns = xmlNewNs(xmlnode, LASSO_DST_QUERY_RESPONSE(node)->hrefServiceType,
LASSO_DST_QUERY_RESPONSE(node)->prefixServiceType);
insure_namespace(xmlnode, ns);