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 40 gboolean
apply_xml_diff(xmlNode *old_xml, xmlNode *diff, xmlNode **new_xml);
46 static inline const char *
47 crm_xml_add_boolean(xmlNode *node,
const char *
name, gboolean value)
56 #endif // PCMK__CRM_COMMON_XML_COMPAT__H
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)
xmlNode * find_entity(xmlNode *parent, const char *node_name, const char *id)
char * xml_get_path(const xmlNode *xml)
Get an XPath string that matches an XML element as closely as possible.