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

Function xmlNewDocText

ThirdParty/libxml2/vtklibxml2/tree.c:2533–2540  ·  view source on GitHub ↗

* xmlNewDocText: * @doc: the target document * @content: raw text content (optional) * * Create a new text node. * * Returns a pointer to the new node object or NULL if a memory * allocation failed. */

Source from the content-addressed store, hash-verified

2531 * allocation failed.
2532 */
2533xmlNodePtr
2534xmlNewDocText(const xmlDoc *doc, const xmlChar *content) {
2535 xmlNodePtr cur;
2536
2537 cur = xmlNewText(content);
2538 if (cur != NULL) cur->doc = (xmlDoc *)doc;
2539 return(cur);
2540}
2541
2542/**
2543 * xmlNewTextLen:

Callers 11

SAX2.cFile · 0.85
xmlNewPropInternalFunction · 0.85
xmlNewDocRawNodeFunction · 0.85
xmlSetNsPropFunction · 0.85
xmlXIncludeCopyRangeFunction · 0.85
xmlXIncludeLoadTxtFunction · 0.85
xmlRelaxNGCleanupTreeFunction · 0.85
SetMethod · 0.85

Calls 1

xmlNewTextFunction · 0.85

Tested by

no test coverage detected