libidav/xml.c

changeset 848
b71598a22e11
parent 816
839fefbdedc7
equal deleted inserted replaced
847:61a3892a8dfb 848:b71598a22e11
172 char *prefix_fr = NULL; 172 char *prefix_fr = NULL;
173 if(node->namespace) { 173 if(node->namespace) {
174 prefix = cxMapGet(nsmap, cx_hash_key_str(node->namespace)); 174 prefix = cxMapGet(nsmap, cx_hash_key_str(node->namespace));
175 if(!prefix) { 175 if(!prefix) {
176 cxmutstr newpre = cx_asprintf("x%zu", cxMapSize(nsmap)+1); 176 cxmutstr newpre = cx_asprintf("x%zu", cxMapSize(nsmap)+1);
177 // TODO: fix namespace declaration 177 // TODO: fix
178 //ucx_map_cstr_put(nsmap, node->namespace, newpre.ptr); 178 //cxMapPut(nsmap, node->namespace, newpre.ptr);
179 prefix = newpre.ptr; 179 prefix = newpre.ptr;
180 prefix_fr = prefix; 180 prefix_fr = prefix;
181 cx_fprintf( 181 cx_fprintf(
182 stream, 182 stream,
183 writef, 183 writef,

mercurial