13 #include <sys/types.h> 21 #include <libxml/parser.h> 22 #include <libxml/tree.h> 23 #include <libxml/xmlIO.h> 47 xmlNode *element = NULL;
49 if ((attr == NULL) || (attr->parent == NULL)) {
53 element = attr->parent;
57 crm_trace(
"ACLs prevent removal of attributes from %s element",
58 (
const char *) element->name);
77 xmlNode *
parent = a->parent;
108 const char *
name = NULL;
109 const char *value = NULL;
110 gchar *value_esc = NULL;
113 if (attr == NULL || attr->children == NULL) {
117 nodepriv = attr->_private;
122 name = (
const char *) attr->name;
123 value = (
const char *) attr->children->content;
char * pcmk__xml_escape(const char *text, enum pcmk__xml_escape_type type)
void pcmk__dump_xml_attr(const xmlAttr *attr, GString *buffer)
bool pcmk__xml_needs_escape(const char *text, enum pcmk__xml_escape_type type)
G_GNUC_INTERNAL void pcmk__xml_set_parent_flags(xmlNode *xml, uint64_t flags)
bool pcmk__marked_as_deleted(xmlAttrPtr a, void *user_data)
void pcmk__mark_xml_attr_dirty(xmlAttr *a)
int pcmk__xa_remove(xmlAttr *attr, bool force)
G_GNUC_INTERNAL void pcmk__xml_free_private_data(xmlNode *xml)
#define crm_trace(fmt, args...)
void pcmk__g_strcat(GString *buffer,...) G_GNUC_NULL_TERMINATED
#define pcmk_is_set(g, f)
Convenience alias for pcmk_all_flags_set(), to check single flag.
Wrappers for and extensions to libxml2.
bool pcmk__check_acl(xmlNode *xml, const char *name, enum xml_private_flags mode)
G_GNUC_INTERNAL void G_GNUC_INTERNAL void pcmk__mark_xml_node_dirty(xmlNode *xml)
G_GNUC_INTERNAL bool pcmk__tracking_xml_changes(xmlNode *xml, bool lazy)
#define pcmk__set_xml_flags(xml_priv, flags_to_set)
#define pcmk__clear_xml_flags(xml_priv, flags_to_clear)