| 1506 CxBuffer *content = cxBufferCreate(cxDefaultAllocator, NULL, 2048, CX_BUFFER_FREE_CONTENTS|CX_BUFFER_AUTO_EXTEND); |
1506 CxBuffer *content = cxBufferCreate(cxDefaultAllocator, NULL, 2048, CX_BUFFER_FREE_CONTENTS|CX_BUFFER_AUTO_EXTEND); |
| 1507 |
1507 |
| 1508 // create an xml document containing all properties |
1508 // create an xml document containing all properties |
| 1509 CxMap *nsmap = cxHashMapCreate(cxDefaultAllocator, CX_STORE_POINTERS, 8); |
1509 CxMap *nsmap = cxHashMapCreate(cxDefaultAllocator, CX_STORE_POINTERS, 8); |
| 1510 cxSetDestructor(nsmap, free); |
1510 cxSetDestructor(nsmap, free); |
| 1511 cxMapPut(nsmap, cx_hash_key_str("DAV:"), strdup("D")); |
1511 cxMapPut(nsmap, "DAV:", strdup("D")); |
| 1512 |
1512 |
| 1513 cxBufferPutString(content, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"); |
1513 cxBufferPutString(content, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"); |
| 1514 cxBufferPutString(content, "<D:prop xmlns:D=\"DAV:\">\n"); |
1514 cxBufferPutString(content, "<D:prop xmlns:D=\"DAV:\">\n"); |
| 1515 |
1515 |
| 1516 CxMapIterator i = cxMapIteratorValues(properties); |
1516 CxMapIterator i = cxMapIteratorValues(properties); |