* xmlNodeSetContent: * @cur: the node being modified * @content: the new value of the content * * Replace the text content of a node. * * Sets the raw text content of text, CDATA, comment or PI nodes. * * For element and attribute nodes, removes all children and * replaces them by parsing @content which is expected to be a * valid XML attribute value possibly containing character and
| 5780 | * Returns 0 on success, 1 on error, -1 if a memory allocation failed. |
| 5781 | */ |
| 5782 | int |
| 5783 | xmlNodeSetContent(xmlNodePtr cur, const xmlChar *content) { |
| 5784 | return(xmlNodeSetContentInternal(cur, content, -1)); |
| 5785 | } |
| 5786 | |
| 5787 | #ifdef LIBXML_TREE_ENABLED |
| 5788 | /** |
no test coverage detected