Lines Matching refs:nsptr

161 	xmlNsPtr nsptr = NULL;  in PHP_METHOD()  local
179 nsptr = dom_get_ns(nodep, uri, &errorcode, prefix); in PHP_METHOD()
180 xmlSetNs(nodep, nsptr); in PHP_METHOD()
663 xmlNsPtr nsptr; in PHP_FUNCTION() local
683 nsptr = dom_get_nsdecl(elemp, (xmlChar *)name); in PHP_FUNCTION()
684 if (nsptr != NULL) { in PHP_FUNCTION()
685 RETVAL_STRING((char *) nsptr->href); in PHP_FUNCTION()
744 xmlNsPtr nsptr; in PHP_FUNCTION() local
785 nsptr = dom_get_nsdecl(elemp, NULL); in PHP_FUNCTION()
787 nsptr = dom_get_nsdecl(elemp, (xmlChar *)localname); in PHP_FUNCTION()
790 nsptr = xmlSearchNsByHref(elemp->doc, elemp, (xmlChar *)uri); in PHP_FUNCTION()
791 if (nsptr && nsptr->prefix == NULL) { in PHP_FUNCTION()
794 tmpnsptr = nsptr->next; in PHP_FUNCTION()
798 nsptr = tmpnsptr; in PHP_FUNCTION()
804 nsptr = _dom_new_reconNs(elemp->doc, elemp, nsptr); in PHP_FUNCTION()
809 if (nsptr == NULL) { in PHP_FUNCTION()
821 nsptr = dom_get_ns(elemp, uri, &errorcode, prefix); in PHP_FUNCTION()
827 if (nsptr->href) { in PHP_FUNCTION()
828 xmlFree((xmlChar *) nsptr->href); in PHP_FUNCTION()
830 nsptr->href = xmlStrdup((xmlChar *)value); in PHP_FUNCTION()
835 xmlSetNsProp(elemp, nsptr, (xmlChar *)localname, (xmlChar *)value); in PHP_FUNCTION()
874 xmlNsPtr nsptr; in PHP_FUNCTION() local
893 nsptr = dom_get_nsdecl(nodep, (xmlChar *)name); in PHP_FUNCTION()
894 if (nsptr != NULL) { in PHP_FUNCTION()
895 if (xmlStrEqual((xmlChar *)uri, nsptr->href)) { in PHP_FUNCTION()
896 if (nsptr->href != NULL) { in PHP_FUNCTION()
897 xmlFree((char *) nsptr->href); in PHP_FUNCTION()
898 nsptr->href = NULL; in PHP_FUNCTION()
900 if (nsptr->prefix != NULL) { in PHP_FUNCTION()
901 xmlFree((char *) nsptr->prefix); in PHP_FUNCTION()
902 nsptr->prefix = NULL; in PHP_FUNCTION()
948 xmlNsPtr nsptr; in PHP_FUNCTION() local
949 nsptr = dom_get_nsdecl(elemp, (xmlChar *)name); in PHP_FUNCTION()
950 if (nsptr != NULL) { in PHP_FUNCTION()
952 curns = xmlNewNs(NULL, nsptr->href, NULL); in PHP_FUNCTION()
953 if (nsptr->prefix) { in PHP_FUNCTION()
954 curns->prefix = xmlStrdup((xmlChar *) nsptr->prefix); in PHP_FUNCTION()
956 if (nsptr->prefix) { in PHP_FUNCTION()
957 fakeAttrp = xmlNewDocNode(elemp->doc, NULL, (xmlChar *) nsptr->prefix, nsptr->href); in PHP_FUNCTION()
959 fakeAttrp = xmlNewDocNode(elemp->doc, NULL, (xmlChar *)"xmlns", nsptr->href); in PHP_FUNCTION()