MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlNodeSetContent

Function xmlNodeSetContent

ThirdParty/libxml2/vtklibxml2/tree.c:5782–5785  ·  view source on GitHub ↗

* 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

Source from the content-addressed store, hash-verified

5780 * Returns 0 on success, 1 on error, -1 if a memory allocation failed.
5781 */
5782int
5783xmlNodeSetContent(xmlNodePtr cur, const xmlChar *content) {
5784 return(xmlNodeSetContentInternal(cur, content, -1));
5785}
5786
5787#ifdef LIBXML_TREE_ENABLED
5788/**

Callers 2

parseFileFunction · 0.85
xmlRelaxNGCleanupTreeFunction · 0.85

Calls 1

Tested by

no test coverage detected