13 #include <sys/types.h> 21 #include <libxml/parser.h> 22 #include <libxml/tree.h> 23 #include <libxml/xmlIO.h> 33 xmlNode *
parent = a->parent;
64 const char *
name = NULL;
65 const char *value = NULL;
66 gchar *value_esc = NULL;
69 if (attr == NULL || attr->children == NULL) {
73 nodepriv = attr->_private;
78 name = (
const char *) attr->name;
79 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)
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)