rem: if (xmlStrcasecmp(cur->name, name) == 0) { if (!ns || (cur->ns && xmlStrcasecmp(cur->ns->prefix, ns) == 0))
add: if (xmlStrcasecmp(cur->name, (xmlChar*)name) == 0) { if (!ns || (cur->ns && xmlStrcasecmp(cur->ns->prefix, (xmlChar*)ns) == 0))
context: xmlNodePtr xmlNodeGetNodeByName(xmlNodePtr node, const char *name, const char *ns){	xmlNodePtr cur = node;	while (cur) {		xmlNodePtr match = NULL;		if (xmlStrcasecmp(cur->name, name) == 0) {			if (!ns || (cur->ns && xmlStrcasecmp(cur->ns->prefix, ns) == 0))				return cur;		}		match = xmlNodeGetNodeByName(cur->children, name, ns);		if (match)			return match;		cur = cur->next;	}	return NULL;}