1 /* |
1 /* |
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
3 * |
3 * |
4 * Copyright 2016 Olaf Wintermann. All rights reserved. |
4 * Copyright 2018 Olaf Wintermann. All rights reserved. |
5 * |
5 * |
6 * Redistribution and use in source and binary forms, with or without |
6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions are met: |
7 * modification, are permitted provided that the following conditions are met: |
8 * |
8 * |
9 * 1. Redistributions of source code must retain the above copyright |
9 * 1. Redistributions of source code must retain the above copyright |
815 // content |
815 // content |
816 DavXmlNode *content = property->value; |
816 DavXmlNode *content = property->value; |
817 if(content->type == DAV_XML_TEXT) { |
817 if(content->type == DAV_XML_TEXT) { |
818 ucx_buffer_write(content->content, 1, content->contentlength, buf); |
818 ucx_buffer_write(content->content, 1, content->contentlength, buf); |
819 } else { |
819 } else { |
820 // TODO: implement |
820 dav_print_node(buf, (write_func)ucx_buffer_write, namespaces, content); |
821 } |
821 } |
822 |
822 |
823 // end tag |
823 // end tag |
824 s = S("</"); |
824 s = S("</"); |
825 ucx_buffer_write(s.ptr, 1, s.length, buf); |
825 ucx_buffer_write(s.ptr, 1, s.length, buf); |