| 3009 | #endif /* LIBXML_TREE_ENABLED */ |
| 3010 | |
| 3011 | static void |
| 3012 | xmlTextSetContent(xmlNodePtr text, xmlChar *content) { |
| 3013 | if ((text->content != NULL) && |
| 3014 | (text->content != (xmlChar *) &text->properties)) { |
| 3015 | xmlDocPtr doc = text->doc; |
| 3016 | |
| 3017 | if ((doc == NULL) || |
| 3018 | (doc->dict == NULL) || |
| 3019 | (!xmlDictOwns(doc->dict, text->content))) |
| 3020 | xmlFree(text->content); |
| 3021 | } |
| 3022 | |
| 3023 | text->content = content; |
| 3024 | text->properties = NULL; |
| 3025 | } |
| 3026 | |
| 3027 | static int |
| 3028 | xmlTextAddContent(xmlNodePtr text, const xmlChar *content, int len) { |
no test coverage detected