Lines Matching refs:nsptr

49 	xmlNsPtr nsptr = NULL;  in PHP_METHOD()  local
67 nsptr = dom_get_ns(nodep, uri, &errorcode, prefix); in PHP_METHOD()
68 xmlSetNs(nodep, nsptr); in PHP_METHOD()
362 for (xmlNsPtr nsptr = nodep->nsDef; nsptr; nsptr = nsptr->next) { in PHP_METHOD() local
363 const char *prefix = (const char *) nsptr->prefix; in PHP_METHOD()
864 xmlNsPtr nsptr = dom_get_nsdecl(elemp, BAD_CAST name); in dom_get_attribute_ns() local
865 if (nsptr != NULL) { in dom_get_attribute_ns()
866 return nsptr->href; in dom_get_attribute_ns()
919 xmlNsPtr nsptr; in dom_set_attribute_ns_legacy() local
941 nsptr = dom_get_nsdecl(elemp, NULL); in dom_set_attribute_ns_legacy()
943 nsptr = dom_get_nsdecl(elemp, BAD_CAST localname); in dom_set_attribute_ns_legacy()
946 nsptr = xmlSearchNsByHref(elemp->doc, elemp, BAD_CAST uri); in dom_set_attribute_ns_legacy()
947 if (nsptr && nsptr->prefix == NULL) { in dom_set_attribute_ns_legacy()
950 tmpnsptr = nsptr->next; in dom_set_attribute_ns_legacy()
954 nsptr = tmpnsptr; in dom_set_attribute_ns_legacy()
960 nsptr = dom_get_ns_resolve_prefix_conflict(elemp, (const char *) nsptr->href); in dom_set_attribute_ns_legacy()
965 if (nsptr == NULL) { in dom_set_attribute_ns_legacy()
969 nsptr = dom_get_ns(elemp, uri, &errorcode, prefix); in dom_set_attribute_ns_legacy()
974 if (nsptr->href) { in dom_set_attribute_ns_legacy()
975 xmlFree(BAD_CAST nsptr->href); in dom_set_attribute_ns_legacy()
977 nsptr->href = xmlStrdup(BAD_CAST value); in dom_set_attribute_ns_legacy()
982 xmlSetNsProp(elemp, nsptr, BAD_CAST localname, BAD_CAST value); in dom_set_attribute_ns_legacy()
1092 static void dom_eliminate_ns(xmlNodePtr nodep, xmlNsPtr nsptr) in dom_eliminate_ns() argument
1094 if (nsptr->href != NULL) { in dom_eliminate_ns()
1095 xmlFree((char *) nsptr->href); in dom_eliminate_ns()
1096 nsptr->href = NULL; in dom_eliminate_ns()
1098 if (nsptr->prefix != NULL) { in dom_eliminate_ns()
1099 xmlFree((char *) nsptr->prefix); in dom_eliminate_ns()
1100 nsptr->prefix = NULL; in dom_eliminate_ns()
1105 if (current_ns == nsptr) { in dom_eliminate_ns()
1106 nodep->nsDef = nsptr->next; in dom_eliminate_ns()
1109 if (current_ns->next == nsptr) { in dom_eliminate_ns()
1110 current_ns->next = nsptr->next; in dom_eliminate_ns()
1116 nsptr->next = NULL; in dom_eliminate_ns()
1117 php_libxml_set_old_ns(nodep->doc, nsptr); in dom_eliminate_ns()
1119 dom_remove_eliminated_ns(nodep, nsptr); in dom_eliminate_ns()
1131 xmlNsPtr nsptr; in PHP_METHOD() local
1151 nsptr = dom_get_nsdecl(nodep, BAD_CAST name); in PHP_METHOD()
1152 if (nsptr != NULL) { in PHP_METHOD()
1153 if (xmlStrEqual(BAD_CAST uri, nsptr->href)) { in PHP_METHOD()
1154 dom_eliminate_ns(nodep, nsptr); in PHP_METHOD()
1202 xmlNsPtr nsptr; in PHP_METHOD() local
1203 nsptr = dom_get_nsdecl(elemp, BAD_CAST name); in PHP_METHOD()
1204 if (nsptr != NULL) { in PHP_METHOD()
1207 (void) php_dom_create_fake_namespace_decl(elemp, nsptr, return_value, intern); in PHP_METHOD()