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

Function xmlRemoveID

ThirdParty/libxml2/vtklibxml2/valid.c:2544–2559  ·  view source on GitHub ↗

* xmlRemoveID: * @doc: the document * @attr: the attribute * * Remove the given attribute from the ID table maintained internally. * * Returns -1 if the lookup failed and 0 otherwise */

Source from the content-addressed store, hash-verified

2542 * Returns -1 if the lookup failed and 0 otherwise
2543 */
2544int
2545xmlRemoveID(xmlDocPtr doc, xmlAttrPtr attr) {
2546 xmlIDTablePtr table;
2547
2548 if (doc == NULL) return(-1);
2549 if ((attr == NULL) || (attr->id == NULL)) return(-1);
2550
2551 table = (xmlIDTablePtr) doc->ids;
2552 if (table == NULL)
2553 return(-1);
2554
2555 if (xmlHashRemoveEntry(table, attr->id->value, xmlFreeIDTableEntry) < 0)
2556 return(-1);
2557
2558 return(0);
2559}
2560
2561/**
2562 * xmlGetID:

Callers 5

xmlAddIDInternalFunction · 0.85
xmlValidateOneAttributeFunction · 0.85
xmlFreePropFunction · 0.85
xmlNodeSetDocFunction · 0.85
xmlSetNsPropFunction · 0.85

Calls 1

xmlHashRemoveEntryFunction · 0.85

Tested by

no test coverage detected