15#include <libxml/tree.h>
16#include <libxml/xmlstring.h>
37 node = xmlNewDocComment(doc, (
const xmlChar *) content);
56 pcmk__assert((comment1 != NULL) && (comment1->type == XML_COMMENT_NODE)
57 && (comment2 != NULL) && (comment2->type == XML_COMMENT_NODE));
59 return pcmk__str_eq((
const char *) comment1->content,
73match_xc_child(
const xmlNode *
parent,
const xmlNode *search)
75 pcmk__assert((search != NULL) && (search->type == XML_COMMENT_NODE));
77 for (xmlNode *child = pcmk__xml_first_child(
parent); child != NULL;
78 child = pcmk__xml_next(child)) {
80 if (child->type != XML_COMMENT_NODE) {
107 CRM_CHECK(update->type == XML_COMMENT_NODE,
return);
116 }
else if (!pcmk__str_eq((
const char *)
target->content, (
const char *)update->content,
pcmk__str_casei)) {
118 target->content = xmlStrdup(update->content);
G_GNUC_INTERNAL void pcmk__xml_new_private_data(xmlNode *xml)
#define CRM_CHECK(expr, failure_action)
#define pcmk__assert(expr)
#define pcmk__mem_assert(ptr)
xmlNode * pcmk__xml_copy(xmlNode *parent, xmlNode *src)