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()
537 xmlNsPtr nsptr; in PHP_METHOD() local
557 nsptr = dom_get_nsdecl(elemp, (xmlChar *)name); in PHP_METHOD()
558 if (nsptr != NULL) { in PHP_METHOD()
559 RETVAL_STRING((char *) nsptr->href); in PHP_METHOD()
617 xmlNsPtr nsptr; in PHP_METHOD() local
658 nsptr = dom_get_nsdecl(elemp, NULL); in PHP_METHOD()
660 nsptr = dom_get_nsdecl(elemp, (xmlChar *)localname); in PHP_METHOD()
663 nsptr = xmlSearchNsByHref(elemp->doc, elemp, (xmlChar *)uri); in PHP_METHOD()
664 if (nsptr && nsptr->prefix == NULL) { in PHP_METHOD()
667 tmpnsptr = nsptr->next; in PHP_METHOD()
671 nsptr = tmpnsptr; in PHP_METHOD()
677 nsptr = _dom_new_reconNs(elemp->doc, elemp, nsptr); in PHP_METHOD()
682 if (nsptr == NULL) { in PHP_METHOD()
694 nsptr = dom_get_ns(elemp, uri, &errorcode, prefix); in PHP_METHOD()
700 if (nsptr->href) { in PHP_METHOD()
701 xmlFree((xmlChar *) nsptr->href); in PHP_METHOD()
703 nsptr->href = xmlStrdup((xmlChar *)value); in PHP_METHOD()
708 xmlSetNsProp(elemp, nsptr, (xmlChar *)localname, (xmlChar *)value); in PHP_METHOD()
746 xmlNsPtr nsptr; in PHP_METHOD() local
765 nsptr = dom_get_nsdecl(nodep, (xmlChar *)name); in PHP_METHOD()
766 if (nsptr != NULL) { in PHP_METHOD()
767 if (xmlStrEqual((xmlChar *)uri, nsptr->href)) { in PHP_METHOD()
768 if (nsptr->href != NULL) { in PHP_METHOD()
769 xmlFree((char *) nsptr->href); in PHP_METHOD()
770 nsptr->href = NULL; in PHP_METHOD()
772 if (nsptr->prefix != NULL) { in PHP_METHOD()
773 xmlFree((char *) nsptr->prefix); in PHP_METHOD()
774 nsptr->prefix = NULL; in PHP_METHOD()
819 xmlNsPtr nsptr; in PHP_METHOD() local
820 nsptr = dom_get_nsdecl(elemp, (xmlChar *)name); in PHP_METHOD()
821 if (nsptr != NULL) { in PHP_METHOD()
823 curns = xmlNewNs(NULL, nsptr->href, NULL); in PHP_METHOD()
824 if (nsptr->prefix) { in PHP_METHOD()
825 curns->prefix = xmlStrdup((xmlChar *) nsptr->prefix); in PHP_METHOD()
827 if (nsptr->prefix) { in PHP_METHOD()
828 fakeAttrp = xmlNewDocNode(elemp->doc, NULL, (xmlChar *) nsptr->prefix, nsptr->href); in PHP_METHOD()
830 fakeAttrp = xmlNewDocNode(elemp->doc, NULL, (xmlChar *)"xmlns", nsptr->href); in PHP_METHOD()