10 #ifndef PCMK__CRM_COMMON_XML_COMPAT__H 11 # define PCMK__CRM_COMMON_XML_COMPAT__H 14 #include <libxml/tree.h> 30 #define XML_PARANOIA_CHECKS 0 43 void xml_log_changes(uint8_t level,
const char *
function,
const xmlNode *xml);
46 void xml_log_patchset(uint8_t level,
const char *
function,
const xmlNode *xml);
49 gboolean
apply_xml_diff(xmlNode *old_xml, xmlNode *diff, xmlNode **new_xml);
55 static inline const char *
56 crm_xml_add_boolean(xmlNode *node,
const char *
name, gboolean value)
65 #endif // PCMK__CRM_COMMON_XML_COMPAT__H void xml_log_changes(uint8_t level, const char *function, const xmlNode *xml)
const char * crm_xml_add(xmlNode *node, const char *name, const char *value)
Create an XML attribute with specified name and value.
void crm_destroy_xml(gpointer data)
Wrappers for and extensions to libxml2.
gboolean apply_xml_diff(xmlNode *old_xml, xmlNode *diff, xmlNode **new_xml)
int add_node_nocopy(xmlNode *parent, const char *name, xmlNode *child)
xmlNode * find_entity(xmlNode *parent, const char *node_name, const char *id)
void xml_log_patchset(uint8_t level, const char *function, const xmlNode *xml)
char * xml_get_path(const xmlNode *xml)
Get an XPath string that matches an XML element as closely as possible.