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

Function xmlXPathCastNodeSetToString

ThirdParty/libxml2/vtklibxml2/xpath.c:4746–4754  ·  view source on GitHub ↗

* xmlXPathCastNodeSetToString: * @ns: a node-set * * Converts a node-set to its string value. * * Returns a newly allocated string. */

Source from the content-addressed store, hash-verified

4744 * Returns a newly allocated string.
4745 */
4746xmlChar *
4747xmlXPathCastNodeSetToString (xmlNodeSetPtr ns) {
4748 if ((ns == NULL) || (ns->nodeNr == 0) || (ns->nodeTab == NULL))
4749 return(xmlStrdup((const xmlChar *) ""));
4750
4751 if (ns->nodeNr > 1)
4752 xmlXPathNodeSetSort(ns);
4753 return(xmlXPathCastNodeToString(ns->nodeTab[0]));
4754}
4755
4756/**
4757 * xmlXPathCastToString:

Callers 4

xmlXPathCastToStringFunction · 0.85
xmlXPathConvertStringFunction · 0.85

Calls 3

xmlStrdupFunction · 0.85
xmlXPathNodeSetSortFunction · 0.85
xmlXPathCastNodeToStringFunction · 0.85

Tested by

no test coverage detected