Lines Matching refs:nsptr

163 	xmlNsPtr nsptr = NULL;  in PHP_METHOD()  local
181 nsptr = dom_get_ns(nodep, uri, &errorcode, prefix); in PHP_METHOD()
182 xmlSetNs(nodep, nsptr); in PHP_METHOD()
658 xmlNsPtr nsptr; in PHP_FUNCTION() local
677 nsptr = dom_get_nsdecl(elemp, (xmlChar *)name); in PHP_FUNCTION()
678 if (nsptr != NULL) { in PHP_FUNCTION()
679 RETVAL_STRING((char *) nsptr->href); in PHP_FUNCTION()
738 xmlNsPtr nsptr; in PHP_FUNCTION() local
778 nsptr = dom_get_nsdecl(elemp, NULL); in PHP_FUNCTION()
780 nsptr = dom_get_nsdecl(elemp, (xmlChar *)localname); in PHP_FUNCTION()
783 nsptr = xmlSearchNsByHref(elemp->doc, elemp, (xmlChar *)uri); in PHP_FUNCTION()
784 if (nsptr && nsptr->prefix == NULL) { in PHP_FUNCTION()
787 tmpnsptr = nsptr->next; in PHP_FUNCTION()
791 nsptr = tmpnsptr; in PHP_FUNCTION()
797 nsptr = _dom_new_reconNs(elemp->doc, elemp, nsptr); in PHP_FUNCTION()
802 if (nsptr == NULL) { in PHP_FUNCTION()
814 nsptr = dom_get_ns(elemp, uri, &errorcode, prefix); in PHP_FUNCTION()
820 if (nsptr->href) { in PHP_FUNCTION()
821 xmlFree((xmlChar *) nsptr->href); in PHP_FUNCTION()
823 nsptr->href = xmlStrdup((xmlChar *)value); in PHP_FUNCTION()
828 xmlSetNsProp(elemp, nsptr, (xmlChar *)localname, (xmlChar *)value); in PHP_FUNCTION()
867 xmlNsPtr nsptr; in PHP_FUNCTION() local
885 nsptr = dom_get_nsdecl(nodep, (xmlChar *)name); in PHP_FUNCTION()
886 if (nsptr != NULL) { in PHP_FUNCTION()
887 if (xmlStrEqual((xmlChar *)uri, nsptr->href)) { in PHP_FUNCTION()
888 if (nsptr->href != NULL) { in PHP_FUNCTION()
889 xmlFree((char *) nsptr->href); in PHP_FUNCTION()
890 nsptr->href = NULL; in PHP_FUNCTION()
892 if (nsptr->prefix != NULL) { in PHP_FUNCTION()
893 xmlFree((char *) nsptr->prefix); in PHP_FUNCTION()
894 nsptr->prefix = NULL; in PHP_FUNCTION()
939 xmlNsPtr nsptr; in PHP_FUNCTION() local
940 nsptr = dom_get_nsdecl(elemp, (xmlChar *)name); in PHP_FUNCTION()
941 if (nsptr != NULL) { in PHP_FUNCTION()
943 curns = xmlNewNs(NULL, nsptr->href, NULL); in PHP_FUNCTION()
944 if (nsptr->prefix) { in PHP_FUNCTION()
945 curns->prefix = xmlStrdup((xmlChar *) nsptr->prefix); in PHP_FUNCTION()
947 if (nsptr->prefix) { in PHP_FUNCTION()
948 fakeAttrp = xmlNewDocNode(elemp->doc, NULL, (xmlChar *) nsptr->prefix, nsptr->href); in PHP_FUNCTION()
950 fakeAttrp = xmlNewDocNode(elemp->doc, NULL, (xmlChar *)"xmlns", nsptr->href); in PHP_FUNCTION()