| 458 | |
| 459 | |
| 460 | static 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 | |
| 475 | static xmlAttr *get_node_attr(xmlNode *node, str attr_name) |
| 476 | { |