src/server/test/xml.h

branch
webdav
changeset 232
499711b2a970
parent 225
e4f3e1433098
child 319
a9b9344875aa
--- a/src/server/test/xml.h	Fri Jan 17 22:23:30 2020 +0100
+++ b/src/server/test/xml.h	Sat Jan 18 13:48:59 2020 +0100
@@ -38,6 +38,7 @@
 
 UCX_TEST(test_wsxml_iterator);
 UCX_TEST(test_wsxml_get_required_namespaces);
+UCX_TEST(test_wsxml_write_nodes);
 
 
 #define XML_TESTDATA1 "<?xml version=\"1.0\" encoding=\"utf-8\" ?> \
@@ -98,6 +99,30 @@
             <x4:elm4 xmlns:x4=\"http://example.com/ns_0/\" >str1</x4:elm4>\
         </x1:prop>"
 
+#define XML_TESTDATA6 "<?xml version=\"1.0\" encoding=\"utf-8\" ?> \n\
+        <x1:test \n\
+            xmlns:x1=\"http://example.com/ns1/\" \n\
+            xmlns:x2=\"http://example.com/ns2/\" > \n\
+            <x1:elm1>str1</x1:elm1>\n\
+            <x2:elm2>str1</x2:elm2>\n\
+            <x3:elm3 xmlns:x3=\"http://example.com/ns_0/\" >str1</x3:elm3>\n\
+            <x1:sub> \n\
+                <x1:a attr1=\"val1\"/> \n\
+                <x1:a attr2=\"val2\">text</x1:a>\n\
+                <x1:b x2:nsattr=\"nsval\"><x1:c/></x1:b>\n\
+            </x1:sub> \n\
+            <x1:newns xmlns:x4=\"http://example.com/0/\" x4:attr3=\"val3\">\n\
+            </x1:newns>\n\
+            <x1:text>Hello\n\
+            World\n\
+            end.\n\
+            </x1:text>\n\
+            <x1:entityref ea=\"test &amp; value\">\n\
+            entity reference test &amp;quote&amp; \n\
+            &#x3C;xml&#x3E;\n\
+            </x1:entityref>\n\
+        </x1:test>\n"
+
 #ifdef __cplusplus
 }
 #endif

mercurial