src/server/webdav/xml.h

branch
webdav
changeset 232
499711b2a970
parent 211
2160585200ac
child 318
60870dbac94f
--- a/src/server/webdav/xml.h	Fri Jan 17 22:23:30 2020 +0100
+++ b/src/server/webdav/xml.h	Sat Jan 18 13:48:59 2020 +0100
@@ -26,22 +26,43 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef XML_H
-#define XML_H
+#ifndef WEBDAV_XML_H
+#define WEBDAV_XML_H
 
 #include "../public/webdav.h"
 #include <libxml/tree.h>
 
+#include <ucx/map.h>
+
+#include "../util/writer.h"
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
+/*
+ * Writes the xmlNode, all children and following nodes to the writer 'out'.
+ */
+int wsxml_write_nodes(
+        pool_handle_t *pool,
+        Writer *out,
+        UcxMap *nsdefs,
+        xmlNode *node);
 
+/*
+ * Writes the xmlNode, all children and following nodes to the writer 'out'
+ * without creating any namespace definitions. Therefore all namespaces must
+ * be already defined and previously written to 'out'.
+ */
+int wsxml_write_nodes_without_nsdef(
+        pool_handle_t *pool,
+        Writer *out,
+        xmlNode *node);
 
 
 #ifdef __cplusplus
 }
 #endif
 
-#endif /* XML_H */
+#endif /* WEBDAV_XML_H */
 

mercurial