Lines Matching refs:prefix
159 char *localname = NULL, *prefix = NULL; in PHP_METHOD() local
177 errorcode = dom_check_qname(name, &localname, &prefix, uri_len, name_len); in PHP_METHOD()
181 nsptr = dom_get_ns(nodep, uri, &errorcode, prefix); in PHP_METHOD()
186 if (prefix != NULL) { in PHP_METHOD()
187 xmlFree(prefix); in PHP_METHOD()
198 localname = (char *) xmlSplitQName2((xmlChar *) name, (xmlChar **) &prefix); in PHP_METHOD()
199 if (prefix != NULL) { in PHP_METHOD()
201 xmlFree(prefix); in PHP_METHOD()
245 if (ns != NULL && ns->prefix) { in dom_element_tag_name_read()
246 qname = xmlStrdup(ns->prefix); in dom_element_tag_name_read()
281 xmlChar *prefix = xmlStrndup(name, len); in dom_get_dom1_attribute() local
282 if (prefix && xmlStrEqual(prefix, (xmlChar *)"xmlns")) { in dom_get_dom1_attribute()
285 if (xmlStrEqual(ns->prefix, nqname)) { in dom_get_dom1_attribute()
290 xmlFree(prefix); in dom_get_dom1_attribute()
293 ns = xmlSearchNs(elem->doc, elem, prefix); in dom_get_dom1_attribute()
294 if (prefix != NULL) { in dom_get_dom1_attribute()
295 xmlFree(prefix); in dom_get_dom1_attribute()
304 if (nsPtr->prefix == NULL) { in dom_get_dom1_attribute()
505 curns->prefix = xmlStrdup((xmlChar *) attrp->children); in PHP_FUNCTION()
694 xmlChar prefix[50]; in _dom_new_reconNs() local
706 if (ns->prefix == NULL) in _dom_new_reconNs()
707 snprintf((char *) prefix, sizeof(prefix), "default"); in _dom_new_reconNs()
709 snprintf((char *) prefix, sizeof(prefix), "%.20s", (char *)ns->prefix); in _dom_new_reconNs()
711 def = xmlSearchNs(doc, tree, prefix); in _dom_new_reconNs()
714 if (ns->prefix == NULL) in _dom_new_reconNs()
715 snprintf((char *) prefix, sizeof(prefix), "default%d", counter++); in _dom_new_reconNs()
717 snprintf((char *) prefix, sizeof(prefix), "%.20s%d", in _dom_new_reconNs()
718 (char *)ns->prefix, counter++); in _dom_new_reconNs()
719 def = xmlSearchNs(doc, tree, prefix); in _dom_new_reconNs()
725 def = xmlNewNs(tree, ns->href, prefix); in _dom_new_reconNs()
742 char *localname = NULL, *prefix = NULL; in PHP_FUNCTION() local
764 errorcode = dom_check_qname(name, &localname, &prefix, uri_len, name_len); in PHP_FUNCTION()
773 if ((xmlStrEqual((xmlChar *) prefix, (xmlChar *)"xmlns") || in PHP_FUNCTION()
774 (prefix == NULL && xmlStrEqual((xmlChar *) localname, (xmlChar *)"xmlns"))) && in PHP_FUNCTION()
777 if (prefix == NULL) { in PHP_FUNCTION()
784 if (nsptr && nsptr->prefix == NULL) { in PHP_FUNCTION()
789 if ((tmpnsptr->prefix != NULL) && (tmpnsptr->href != NULL) && in PHP_FUNCTION()
803 if (prefix == NULL) { in PHP_FUNCTION()
814 nsptr = dom_get_ns(elemp, uri, &errorcode, prefix); in PHP_FUNCTION()
846 if (prefix != NULL) { in PHP_FUNCTION()
847 xmlFree(prefix); 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()
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()