Lines Matching refs:prefix
161 char *localname = NULL, *prefix = NULL; in PHP_METHOD() local
182 errorcode = dom_check_qname(name, &localname, &prefix, uri_len, name_len); in PHP_METHOD()
186 nsptr = dom_get_ns(nodep, uri, &errorcode, prefix); in PHP_METHOD()
191 if (prefix != NULL) { in PHP_METHOD()
192 xmlFree(prefix); in PHP_METHOD()
203 localname = xmlSplitQName2((xmlChar *)name, (xmlChar **) &prefix); in PHP_METHOD()
204 if (prefix != NULL) { in PHP_METHOD()
206 xmlFree(prefix); in PHP_METHOD()
253 if (ns != NULL && ns->prefix) { in dom_element_tag_name_read()
254 qname = xmlStrdup(ns->prefix); in dom_element_tag_name_read()
290 xmlChar *prefix = xmlStrndup(name, len); in dom_get_dom1_attribute() local
291 if (prefix && xmlStrEqual(prefix, (xmlChar *)"xmlns")) { in dom_get_dom1_attribute()
294 if (xmlStrEqual(ns->prefix, nqname)) { in dom_get_dom1_attribute()
299 xmlFree(prefix); in dom_get_dom1_attribute()
302 ns = xmlSearchNs(elem->doc, elem, prefix); in dom_get_dom1_attribute()
303 if (prefix != NULL) { in dom_get_dom1_attribute()
304 xmlFree(prefix); in dom_get_dom1_attribute()
313 if (nsPtr->prefix == NULL) { in dom_get_dom1_attribute()
512 curns->prefix = xmlStrdup((xmlChar *) attrp->children); in PHP_FUNCTION()
701 xmlChar prefix[50]; in _dom_new_reconNs() local
713 if (ns->prefix == NULL) in _dom_new_reconNs()
714 snprintf((char *) prefix, sizeof(prefix), "default"); in _dom_new_reconNs()
716 snprintf((char *) prefix, sizeof(prefix), "%.20s", (char *)ns->prefix); in _dom_new_reconNs()
718 def = xmlSearchNs(doc, tree, prefix); in _dom_new_reconNs()
721 if (ns->prefix == NULL) in _dom_new_reconNs()
722 snprintf((char *) prefix, sizeof(prefix), "default%d", counter++); in _dom_new_reconNs()
724 snprintf((char *) prefix, sizeof(prefix), "%.20s%d", in _dom_new_reconNs()
725 (char *)ns->prefix, counter++); in _dom_new_reconNs()
726 def = xmlSearchNs(doc, tree, prefix); in _dom_new_reconNs()
732 def = xmlNewNs(tree, ns->href, prefix); in _dom_new_reconNs()
749 char *localname = NULL, *prefix = NULL; in PHP_FUNCTION() local
771 errorcode = dom_check_qname(name, &localname, &prefix, uri_len, name_len); in PHP_FUNCTION()
780 if ((xmlStrEqual((xmlChar *) prefix, (xmlChar *)"xmlns") || in PHP_FUNCTION()
781 (prefix == NULL && xmlStrEqual((xmlChar *) localname, (xmlChar *)"xmlns"))) && in PHP_FUNCTION()
784 if (prefix == NULL) { in PHP_FUNCTION()
791 if (nsptr && nsptr->prefix == NULL) { in PHP_FUNCTION()
796 if ((tmpnsptr->prefix != NULL) && (tmpnsptr->href != NULL) && in PHP_FUNCTION()
810 if (prefix == NULL) { in PHP_FUNCTION()
821 nsptr = dom_get_ns(elemp, uri, &errorcode, prefix); in PHP_FUNCTION()
853 if (prefix != NULL) { in PHP_FUNCTION()
854 xmlFree(prefix); in PHP_FUNCTION()
899 if (nsptr->prefix != NULL) { in PHP_FUNCTION()
900 xmlFree((char *) nsptr->prefix); in PHP_FUNCTION()
901 nsptr->prefix = NULL; in PHP_FUNCTION()