Lines Matching refs:nsptr

165 	xmlNsPtr nsptr = NULL;  in PHP_METHOD()  local
183 nsptr = dom_get_ns(nodep, uri, &errorcode, prefix); in PHP_METHOD()
184 xmlSetNs(nodep, nsptr); in PHP_METHOD()
660 xmlNsPtr nsptr; in PHP_FUNCTION() local
679 nsptr = dom_get_nsdecl(elemp, (xmlChar *)name); in PHP_FUNCTION()
680 if (nsptr != NULL) { in PHP_FUNCTION()
681 RETVAL_STRING((char *) nsptr->href); in PHP_FUNCTION()
740 xmlNsPtr nsptr; in PHP_FUNCTION() local
780 nsptr = dom_get_nsdecl(elemp, NULL); in PHP_FUNCTION()
782 nsptr = dom_get_nsdecl(elemp, (xmlChar *)localname); in PHP_FUNCTION()
785 nsptr = xmlSearchNsByHref(elemp->doc, elemp, (xmlChar *)uri); in PHP_FUNCTION()
786 if (nsptr && nsptr->prefix == NULL) { in PHP_FUNCTION()
789 tmpnsptr = nsptr->next; in PHP_FUNCTION()
793 nsptr = tmpnsptr; in PHP_FUNCTION()
799 nsptr = _dom_new_reconNs(elemp->doc, elemp, nsptr); in PHP_FUNCTION()
804 if (nsptr == NULL) { in PHP_FUNCTION()
816 nsptr = dom_get_ns(elemp, uri, &errorcode, prefix); in PHP_FUNCTION()
822 if (nsptr->href) { in PHP_FUNCTION()
823 xmlFree((xmlChar *) nsptr->href); in PHP_FUNCTION()
825 nsptr->href = xmlStrdup((xmlChar *)value); in PHP_FUNCTION()
830 xmlSetNsProp(elemp, nsptr, (xmlChar *)localname, (xmlChar *)value); in PHP_FUNCTION()
869 xmlNsPtr nsptr; in PHP_FUNCTION() local
887 nsptr = dom_get_nsdecl(nodep, (xmlChar *)name); in PHP_FUNCTION()
888 if (nsptr != NULL) { in PHP_FUNCTION()
889 if (xmlStrEqual((xmlChar *)uri, nsptr->href)) { in PHP_FUNCTION()
890 if (nsptr->href != NULL) { in PHP_FUNCTION()
891 xmlFree((char *) nsptr->href); in PHP_FUNCTION()
892 nsptr->href = NULL; in PHP_FUNCTION()
894 if (nsptr->prefix != NULL) { in PHP_FUNCTION()
895 xmlFree((char *) nsptr->prefix); in PHP_FUNCTION()
896 nsptr->prefix = NULL; in PHP_FUNCTION()
941 xmlNsPtr nsptr; in PHP_FUNCTION() local
942 nsptr = dom_get_nsdecl(elemp, (xmlChar *)name); in PHP_FUNCTION()
943 if (nsptr != NULL) { in PHP_FUNCTION()
945 curns = xmlNewNs(NULL, nsptr->href, NULL); in PHP_FUNCTION()
946 if (nsptr->prefix) { in PHP_FUNCTION()
947 curns->prefix = xmlStrdup((xmlChar *) nsptr->prefix); in PHP_FUNCTION()
949 if (nsptr->prefix) { in PHP_FUNCTION()
950 fakeAttrp = xmlNewDocNode(elemp->doc, NULL, (xmlChar *) nsptr->prefix, nsptr->href); in PHP_FUNCTION()
952 fakeAttrp = xmlNewDocNode(elemp->doc, NULL, (xmlChar *)"xmlns", nsptr->href); in PHP_FUNCTION()