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

Function xmlGetPropNodeValueInternal

ThirdParty/libxml2/vtklibxml2/tree.c:6659–6670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6657}
6658
6659static xmlChar*
6660xmlGetPropNodeValueInternal(const xmlAttr *prop)
6661{
6662 if (prop == NULL)
6663 return(NULL);
6664 if (prop->type == XML_ATTRIBUTE_NODE) {
6665 return(xmlNodeGetContent((xmlNodePtr) prop));
6666 } else if (prop->type == XML_ATTRIBUTE_DECL) {
6667 return(xmlStrdup(((xmlAttributePtr)prop)->defaultValue));
6668 }
6669 return(NULL);
6670}
6671
6672/**
6673 * xmlHasProp:

Callers 4

xmlNodeGetAttrValueFunction · 0.85
xmlGetPropFunction · 0.85
xmlGetNoNsPropFunction · 0.85
xmlGetNsPropFunction · 0.85

Calls 2

xmlNodeGetContentFunction · 0.85
xmlStrdupFunction · 0.85

Tested by

no test coverage detected