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

Function xmlNodeListGetString

ThirdParty/libxml2/vtklibxml2/tree.c:1610–1630  ·  view source on GitHub ↗

* xmlNodeListGetString: * @doc: a document (optional) * @list: a node list of attribute children * @inLine: whether entity references are substituted * * Serializes attribute children (text and entity reference nodes) * into a string. * * If @inLine is true, entity references will be substituted. * Otherwise, entity references will be kept and special characters * like '&' as well as

Source from the content-addressed store, hash-verified

1608 * Returns a string or NULL if a memory allocation failed.
1609 */
1610xmlChar *
1611xmlNodeListGetString(xmlDocPtr doc, const xmlNode *list, int inLine)
1612{
1613 int escMode;
1614
1615 /* backward compatibility */
1616 if (list == NULL)
1617 return(NULL);
1618
1619 if (inLine) {
1620 escMode = 0;
1621 } else {
1622 if ((list->parent != NULL) &&
1623 (list->parent->type == XML_ATTRIBUTE_NODE))
1624 escMode = 2;
1625 else
1626 escMode = 1;
1627 }
1628
1629 return(xmlNodeListGetStringInternal(doc, list, escMode));
1630}
1631
1632#ifdef LIBXML_TREE_ENABLED
1633/**

Callers 11

xmlC14NPrintAttrsFunction · 0.85
xmlC14NFixupBaseAttrFunction · 0.85
xmlRemoveRefFunction · 0.85
xmlValidateElementFunction · 0.85
xmlTextReaderValueFunction · 0.85
xmlSchemaVDocWalkFunction · 0.85
htmlAttrDumpOutputFunction · 0.85
GetCDataMethod · 0.85

Calls 1

Tested by

no test coverage detected