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

Function xmlUnsetProp

ThirdParty/libxml2/vtklibxml2/tree.c:6878–6888  ·  view source on GitHub ↗

* xmlUnsetProp: * @node: the node * @name: the attribute name * * Remove an attribute carried by a node. * This handles only attributes in no namespace. * Returns 0 if successful, -1 if not found */

Source from the content-addressed store, hash-verified

6876 * Returns 0 if successful, -1 if not found
6877 */
6878int
6879xmlUnsetProp(xmlNodePtr node, const xmlChar *name) {
6880 xmlAttrPtr prop;
6881
6882 prop = xmlGetPropNodeInternal(node, name, NULL, 0);
6883 if (prop == NULL)
6884 return(-1);
6885 xmlUnlinkNodeInternal((xmlNodePtr) prop);
6886 xmlFreeProp(prop);
6887 return(0);
6888}
6889
6890/**
6891 * xmlUnsetNsProp:

Callers 4

xmlXIncludeIncludeNodeFunction · 0.85
xmlRelaxNGCleanupTreeFunction · 0.85
SetMethod · 0.85

Calls 3

xmlGetPropNodeInternalFunction · 0.85
xmlUnlinkNodeInternalFunction · 0.85
xmlFreePropFunction · 0.85

Tested by

no test coverage detected