Lines Matching refs:nsptr

43 	xmlNsPtr nsptr = NULL;  in PHP_METHOD()  local
61 nsptr = dom_get_ns(nodep, uri, &errorcode, prefix); in PHP_METHOD()
62 xmlSetNs(nodep, nsptr); in PHP_METHOD()
340 for (xmlNsPtr nsptr = nodep->nsDef; nsptr; nsptr = nsptr->next) { in PHP_METHOD() local
341 const char *prefix = (const char *) nsptr->prefix; in PHP_METHOD()
721 xmlNsPtr nsptr; in PHP_METHOD() local
741 nsptr = dom_get_nsdecl(elemp, (xmlChar *)name); in PHP_METHOD()
742 if (nsptr != NULL) { in PHP_METHOD()
743 RETVAL_STRING((char *) nsptr->href); in PHP_METHOD()
762 xmlNsPtr nsptr; in PHP_METHOD() local
798 nsptr = dom_get_nsdecl(elemp, NULL); in PHP_METHOD()
800 nsptr = dom_get_nsdecl(elemp, (xmlChar *)localname); in PHP_METHOD()
803 nsptr = xmlSearchNsByHref(elemp->doc, elemp, (xmlChar *)uri); in PHP_METHOD()
804 if (nsptr && nsptr->prefix == NULL) { in PHP_METHOD()
807 tmpnsptr = nsptr->next; in PHP_METHOD()
811 nsptr = tmpnsptr; in PHP_METHOD()
817 nsptr = dom_get_ns_resolve_prefix_conflict(elemp, (const char *) nsptr->href); in PHP_METHOD()
822 if (nsptr == NULL) { in PHP_METHOD()
826 nsptr = dom_get_ns(elemp, uri, &errorcode, prefix); in PHP_METHOD()
831 if (nsptr->href) { in PHP_METHOD()
832 xmlFree((xmlChar *) nsptr->href); in PHP_METHOD()
834 nsptr->href = xmlStrdup((xmlChar *)value); in PHP_METHOD()
839 xmlSetNsProp(elemp, nsptr, (xmlChar *)localname, (xmlChar *)value); in PHP_METHOD()
916 static void dom_eliminate_ns(xmlNodePtr nodep, xmlNsPtr nsptr) in dom_eliminate_ns() argument
918 if (nsptr->href != NULL) { in dom_eliminate_ns()
919 xmlFree((char *) nsptr->href); in dom_eliminate_ns()
920 nsptr->href = NULL; in dom_eliminate_ns()
922 if (nsptr->prefix != NULL) { in dom_eliminate_ns()
923 xmlFree((char *) nsptr->prefix); in dom_eliminate_ns()
924 nsptr->prefix = NULL; in dom_eliminate_ns()
929 if (current_ns == nsptr) { in dom_eliminate_ns()
930 nodep->nsDef = nsptr->next; in dom_eliminate_ns()
933 if (current_ns->next == nsptr) { in dom_eliminate_ns()
934 current_ns->next = nsptr->next; in dom_eliminate_ns()
940 nsptr->next = NULL; in dom_eliminate_ns()
941 php_libxml_set_old_ns(nodep->doc, nsptr); in dom_eliminate_ns()
943 dom_remove_eliminated_ns(nodep, nsptr); in dom_eliminate_ns()
954 xmlNsPtr nsptr; in PHP_METHOD() local
968 nsptr = dom_get_nsdecl(nodep, (xmlChar *)name); in PHP_METHOD()
969 if (nsptr != NULL) { in PHP_METHOD()
970 if (xmlStrEqual((xmlChar *)uri, nsptr->href)) { in PHP_METHOD()
971 dom_eliminate_ns(nodep, nsptr); in PHP_METHOD()
1015 xmlNsPtr nsptr; in PHP_METHOD() local
1016 nsptr = dom_get_nsdecl(elemp, (xmlChar *)name); in PHP_METHOD()
1017 if (nsptr != NULL) { in PHP_METHOD()
1020 (void) php_dom_create_fake_namespace_decl(elemp, nsptr, return_value, intern); in PHP_METHOD()