src/server/webdav/xml.c

changeset 659
07b815faa6ac
parent 579
e10457d74fe1
equal deleted inserted replaced
658:7290604d846d 659:07b815faa6ac
579 writer_put_lit(out, " xmlns=\""); 579 writer_put_lit(out, " xmlns=\"");
580 writer_put_str(out, (char*)nsdef->href); 580 writer_put_str(out, (char*)nsdef->href);
581 writer_putc (out, '"'); 581 writer_putc (out, '"');
582 } else { 582 } else {
583 WSNamespace *n = xw->namespaces ? 583 WSNamespace *n = xw->namespaces ?
584 cxMapGet(xw->namespaces, cx_hash_key_str((const char*)nsdef->prefix)) : 584 cxMapGet(xw->namespaces, nsdef->prefix) :
585 NULL; 585 NULL;
586 if(!n) { 586 if(!n) {
587 writer_put_lit(out, " xmlns:"); 587 writer_put_lit(out, " xmlns:");
588 writer_put_str(out, (const char*)nsdef->prefix); 588 writer_put_str(out, (const char*)nsdef->prefix);
589 writer_put_lit(out, "=\""); 589 writer_put_lit(out, "=\"");

mercurial