# HG changeset patch # User Olaf Wintermann # Date 1571560502 -7200 # Node ID 97061483d06e8c2aea00015e6d724f8831424a4f # Parent ec8c9201a974d2684174683e5790bbc85148c4c9 fix xml generation diff -r ec8c9201a974 -r 97061483d06e libidav/xml.c --- a/libidav/xml.c Sun Oct 20 08:30:11 2019 +0200 +++ b/libidav/xml.c Sun Oct 20 10:35:02 2019 +0200 @@ -169,8 +169,9 @@ if(node->namespace) { prefix = ucx_map_cstr_get(nsmap, node->namespace); if(!prefix) { - sstr_t newpre = ucx_sprintf("x%d", (int)nsmap->count); - ucx_map_cstr_put(nsmap, node->namespace, newpre.ptr); + sstr_t newpre = ucx_sprintf("x%d", (int)nsmap->count+1); + // TODO: fix namespace declaration + //ucx_map_cstr_put(nsmap, node->namespace, newpre.ptr); prefix = newpre.ptr; ucx_fprintf( stream,