Changeset 802
- Timestamp:
- Jan 16, 2017, 11:15:51 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/request_parser.c
r797 r802 861 861 while(cur4 != NULL && 862 862 cur4->type != XML_CDATA_SECTION_NODE && 863 cur4->type != XML_TEXT_NODE) 863 cur4->type != XML_TEXT_NODE && 864 cur4->type != XML_ELEMENT_NODE) 864 865 cur4=cur4->next; 865 866 if(cur4!=NULL){ 866 if(cur4->content!=NULL){ 867 if (cur4->type == XML_ELEMENT_NODE) 868 { 869 xmlChar *mv; 870 int buffersize; 871 xmlDocPtr doc1 = xmlNewDoc (BAD_CAST "1.0"); 872 xmlDocSetRootElement (doc1, cur4); 873 xmlDocDumpFormatMemoryEnc (doc1, &mv, 874 &buffersize, 875 "utf-8", 0); 876 if (tmpmaps->content != NULL) 877 addToMap (tmpmaps->content, "value", 878 (char *) mv); 879 else 880 tmpmaps->content = 881 createMap ("value", (char *) mv); 882 free(mv); 883 } 884 else{ 867 885 if (tmpmaps->content != NULL) 868 886 addToMap (tmpmaps->content, "value",
Note: See TracChangeset
for help on using the changeset viewer.