202 } |
202 } |
203 case WS_VALUE_XML_DATA: { |
203 case WS_VALUE_XML_DATA: { |
204 // only write data, data->namespaces is already handled |
204 // only write data, data->namespaces is already handled |
205 writer_put( |
205 writer_put( |
206 out, |
206 out, |
207 property->value.data->data, |
207 property->value.data.data, |
208 property->value.data->length); |
208 property->value.data.length); |
209 break; |
209 break; |
210 } |
210 } |
211 case WS_VALUE_TEXT: { |
211 case WS_VALUE_TEXT: { |
212 // asume the text is already escaped |
212 // asume the text is already escaped |
213 writer_put( |
213 writer_put( |
522 if(err) { |
525 if(err) { |
523 return 1; // OOM |
526 return 1; // OOM |
524 } |
527 } |
525 } else if(property->vtype == WS_VALUE_XML_DATA) { |
528 } else if(property->vtype == WS_VALUE_XML_DATA) { |
526 // xml data contains a list of all used namespaces |
529 // xml data contains a list of all used namespaces |
527 nslist = property->value.data->namespaces; |
530 nslist = property->value.data.namespaces; |
528 } // other value types don't contain xml namespaces |
531 } // other value types don't contain xml namespaces |
529 |
532 |
530 while(nslist) { |
533 while(nslist) { |
531 // only add the namespace to the definitions list, if it isn't a |
534 // only add the namespace to the definitions list, if it isn't a |
532 // property namespace, because the prop ns is already added |
535 // property namespace, because the prop ns is already added |