13 #include <sys/types.h> 21 #include <libxml/parser.h> 22 #include <libxml/tree.h> 23 #include <libxml/xmlIO.h> 34 xmlNode *
parent = a->parent;
66 const char *p_name = NULL;
69 if (attr == NULL || attr->children == NULL) {
73 nodepriv = attr->_private;
78 p_name = (
const char *) attr->name;
80 pcmk__g_strcat(buffer,
" ", p_name,
"=\"", pcmk__s(p_value,
"<null>"),
"\"",
void pcmk__dump_xml_attr(const xmlAttr *attr, GString *buffer)
bool pcmk__marked_as_deleted(xmlAttrPtr a, void *user_data)
void pcmk__mark_xml_attr_dirty(xmlAttr *a)
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.
G_GNUC_INTERNAL void G_GNUC_INTERNAL void pcmk__mark_xml_node_dirty(xmlNode *xml)
#define pcmk__set_xml_flags(xml_priv, flags_to_set)
#define pcmk__clear_xml_flags(xml_priv, flags_to_clear)
char * crm_xml_escape(const char *text)
Replace special characters with their XML escape sequences.