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

Function xmlNewNodeEatName

ThirdParty/libxml2/vtklibxml2/tree.c:2082–2085  ·  view source on GitHub ↗

* xmlNewNodeEatName: * @ns: namespace (optional) * @name: the node name * * Create an element node. * * Use of this function is DISCOURAGED in favor of xmlNewDocNodeEatName. * * Like xmlNewNode, but the @name string will be used directly * without making a copy. Takes ownership of @name which will also * be freed on error. * * Returns a pointer to the new node object or NULL if argum

Source from the content-addressed store, hash-verified

2080 * invalid or a memory allocation failed.
2081 */
2082xmlNodePtr
2083xmlNewNodeEatName(xmlNsPtr ns, xmlChar *name) {
2084 return(xmlNewDocNodeEatName(NULL, ns, name, NULL));
2085}
2086
2087static xmlNodePtr
2088xmlNewElem(xmlDocPtr doc, xmlNsPtr ns, const xmlChar *name,

Callers 5

xmlParseCRNG_nameClassFunction · 0.85
xmlParseCRNG_primaryFunction · 0.85
xmlParseCRNG_patternFunction · 0.85
xmlParseCRNG_componentFunction · 0.85

Calls 1

xmlNewDocNodeEatNameFunction · 0.85

Tested by

no test coverage detected