46 #ifndef _xmlwrapp_node_manip_h_
47 #define _xmlwrapp_node_manip_h_
50 #include <libxml/tree.h>
67 xmlNodePtr
node_insert (xmlNodePtr parent, xmlNodePtr before, xmlNodePtr to_add);
80 xmlNodePtr
node_replace (xmlNodePtr old_node, xmlNodePtr new_node);
127 bool is_ns_used (xmlNodePtr node, xmlNsPtr ns);
187 void replace_ns (xmlNodePtr node, xmlNsPtr oldNs, xmlNsPtr newNs);
xmlNodePtr node_replace(xmlNodePtr old_node, xmlNodePtr new_node)
Replace a node with another one.
void erase_ns_definition(xmlNodePtr node, xmlNsPtr definition)
Erases namespace definition in the node.
xmlNsPtr lookup_default_ns_above(xmlNodePtr node)
Searches for a default namspace definition in the given node and above.
xmlNodePtr node_erase(xmlNodePtr to_erase)
Erase a node from the child list, and then free it from memory.
void set_children_default_ns(xmlNodePtr node, xmlNsPtr default_ns)
Set the node and its children default namespace to the given.
void update_children_default_ns(xmlNodePtr node, xmlNsPtr newns)
Replaces the node and its children default namespace with the given.
bool is_ns_used(xmlNodePtr node, xmlNsPtr ns)
Check if the node, attributes and children use the namespace.
void replace_ns(xmlNodePtr node, xmlNsPtr oldNs, xmlNsPtr newNs)
Replaces old namspace with a new one in nodes and attributes all the way down in the hierarchy.
bool has_default_ns_definition(xmlNodePtr node)
Check if the node holds default namespace definition.
xmlNodePtr node_insert(xmlNodePtr parent, xmlNodePtr before, xmlNodePtr to_add)
Insert a node somewhere in the child list of a parent node.
xmlNsPtr lookup_ns_definition(xmlNodePtr node, const char *prefix)
Searches for a namspace definition in the given node.
static const char * prefix[]