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

Function xmlNodeGetAttrValue

ThirdParty/libxml2/vtklibxml2/tree.c:6763–6780  ·  view source on GitHub ↗

* xmlNodeGetAttrValue: * @node: the node * @name: the attribute name * @nsUri: the URI of the namespace * @out: the returned string * * Search and get the value of an attribute associated to a node * This attribute has to be anchored in the namespace specified. * This does the entity substitution. The returned value must be * freed by the caller. * * Available since 2.13.0. * * Re

Source from the content-addressed store, hash-verified

6761 * memory allocation failed.
6762 */
6763int
6764xmlNodeGetAttrValue(const xmlNode *node, const xmlChar *name,
6765 const xmlChar *nsUri, xmlChar **out) {
6766 xmlAttrPtr prop;
6767
6768 if (out == NULL)
6769 return(1);
6770 *out = NULL;
6771
6772 prop = xmlGetPropNodeInternal(node, name, nsUri, 0);
6773 if (prop == NULL)
6774 return(1);
6775
6776 *out = xmlGetPropNodeValueInternal(prop);
6777 if (*out == NULL)
6778 return(-1);
6779 return(0);
6780}
6781
6782/**
6783 * xmlGetProp:

Callers 7

xmlXPathLangFunctionFunction · 0.85
xmlNodeGetLangFunction · 0.85
xmlNodeGetSpacePreserveFunction · 0.85
xmlNodeGetBaseSafeFunction · 0.85
xmlXIncludeGetPropFunction · 0.85

Calls 2

xmlGetPropNodeInternalFunction · 0.85

Tested by

no test coverage detected