libidav/xml.c

changeset 97
5a3d27b8e6b0
parent 49
2f71f4ee247a
equal deleted inserted replaced
96:493959648de6 97:5a3d27b8e6b0
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