src/server/test/xml.h

branch
webdav
changeset 225
e4f3e1433098
parent 224
0de1ec82628e
child 232
499711b2a970
equal deleted inserted replaced
224:0de1ec82628e 225:e4f3e1433098
35 #ifdef __cplusplus 35 #ifdef __cplusplus
36 extern "C" { 36 extern "C" {
37 #endif 37 #endif
38 38
39 UCX_TEST(test_wsxml_iterator); 39 UCX_TEST(test_wsxml_iterator);
40 UCX_TEST(test_wsxml_get_required_namespaces);
40 41
41 42
42 #define XML_TESTDATA1 "<?xml version=\"1.0\" encoding=\"utf-8\" ?> \ 43 #define XML_TESTDATA1 "<?xml version=\"1.0\" encoding=\"utf-8\" ?> \
43 <test> \ 44 <test> \
44 <elm1>teststr</elm1> \ 45 <elm1>teststr</elm1> \
63 <d><e><b/></e></d>\ 64 <d><e><b/></e></d>\
64 </c> \ 65 </c> \
65 <x><z/></x> \ 66 <x><z/></x> \
66 </test><nextelm/></wrapper><ignore/></root>" 67 </test><nextelm/></wrapper><ignore/></root>"
67 68
69 #define XML_TESTDATA3 "<?xml version=\"1.0\" encoding=\"utf-8\" ?> \
70 <x1:prop \
71 xmlns:x1=\"http://example.com/ns1/\" \
72 xmlns:x2=\"http://example.com/ns2/\" \
73 xmlns:x3=\"http://example.com/ns_0/\" \
74 xmlns:x4=\"http://example.com/ns_0/\" > \
75 <x1:elm1>str1</x1:elm1>\
76 <x2:elm2>str1</x2:elm2>\
77 <x3:elm3>str1</x3:elm3>\
78 <x4:elm4>str1</x4:elm4>\
79 </x1:prop>"
80
81 #define XML_TESTDATA4 "<?xml version=\"1.0\" encoding=\"utf-8\" ?> \
82 <x1:prop \
83 xmlns:x1=\"http://example.com/ns1/\" \
84 xmlns:x2=\"http://example.com/ns2/\" \
85 xmlns:x3=\"http://example.com/ns_0/\" \
86 xmlns:x4=\"http://example.com/ns_0/\" >\
87 <x1:elm1>str1</x1:elm1>\
88 <x2:elm2>str1</x2:elm2>\
89 </x1:prop>"
90
91 #define XML_TESTDATA5 "<?xml version=\"1.0\" encoding=\"utf-8\" ?> \
92 <x1:prop \
93 xmlns:x1=\"http://example.com/ns1/\" \
94 xmlns:x2=\"http://example.com/ns2/\" > \
95 <x1:elm1>str1</x1:elm1>\
96 <x2:elm2>str1</x2:elm2>\
97 <x3:elm3 xmlns:x3=\"http://example.com/ns_0/\" >str1</x3:elm3>\
98 <x4:elm4 xmlns:x4=\"http://example.com/ns_0/\" >str1</x4:elm4>\
99 </x1:prop>"
68 100
69 #ifdef __cplusplus 101 #ifdef __cplusplus
70 } 102 }
71 #endif 103 #endif
72 104

mercurial