MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / get_node_content

Function get_node_content

modules/xml/xml.c:460–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458
459
460static int get_node_content(xmlNode *node, xmlBufferPtr xml_buf)
461{
462 xmlNode *n_it;
463
464 for (n_it = node->children; n_it; n_it = n_it->next)
465 if ((n_it->type == XML_TEXT_NODE ||
466 n_it->type == XML_CDATA_SECTION_NODE) &&
467 xmlBufferCat(xml_buf, n_it->content) < 0) {
468 LM_ERR("Unable to append string to xml buffer\n");
469 return -1;
470 }
471
472 return 0;
473}
474
475static xmlAttr *get_node_attr(xmlNode *node, str attr_name)
476{

Callers 1

pv_get_xmlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected