Lines Matching refs:prefix
161 char *localname = NULL, *prefix = NULL; in PHP_METHOD() local
179 errorcode = dom_check_qname(name, &localname, &prefix, uri_len, name_len); in PHP_METHOD()
183 nsptr = dom_get_ns(nodep, uri, &errorcode, prefix); in PHP_METHOD()
188 if (prefix != NULL) { in PHP_METHOD()
189 xmlFree(prefix); in PHP_METHOD()
200 localname = (char *) xmlSplitQName2((xmlChar *) name, (xmlChar **) &prefix); in PHP_METHOD()
201 if (prefix != NULL) { in PHP_METHOD()
203 xmlFree(prefix); in PHP_METHOD()
247 if (ns != NULL && ns->prefix) { in dom_element_tag_name_read()
248 qname = xmlStrdup(ns->prefix); in dom_element_tag_name_read()
283 xmlChar *prefix = xmlStrndup(name, len); in dom_get_dom1_attribute() local
284 if (prefix && xmlStrEqual(prefix, (xmlChar *)"xmlns")) { in dom_get_dom1_attribute()
287 if (xmlStrEqual(ns->prefix, nqname)) { in dom_get_dom1_attribute()
292 xmlFree(prefix); in dom_get_dom1_attribute()
295 ns = xmlSearchNs(elem->doc, elem, prefix); in dom_get_dom1_attribute()
296 if (prefix != NULL) { in dom_get_dom1_attribute()
297 xmlFree(prefix); in dom_get_dom1_attribute()
306 if (nsPtr->prefix == NULL) { in dom_get_dom1_attribute()
507 curns->prefix = xmlStrdup((xmlChar *) attrp->children); in PHP_FUNCTION()
696 xmlChar prefix[50]; in _dom_new_reconNs() local
708 if (ns->prefix == NULL) in _dom_new_reconNs()
709 snprintf((char *) prefix, sizeof(prefix), "default"); in _dom_new_reconNs()
711 snprintf((char *) prefix, sizeof(prefix), "%.20s", (char *)ns->prefix); in _dom_new_reconNs()
713 def = xmlSearchNs(doc, tree, prefix); in _dom_new_reconNs()
716 if (ns->prefix == NULL) in _dom_new_reconNs()
717 snprintf((char *) prefix, sizeof(prefix), "default%d", counter++); in _dom_new_reconNs()
719 snprintf((char *) prefix, sizeof(prefix), "%.20s%d", in _dom_new_reconNs()
720 (char *)ns->prefix, counter++); in _dom_new_reconNs()
721 def = xmlSearchNs(doc, tree, prefix); in _dom_new_reconNs()
727 def = xmlNewNs(tree, ns->href, prefix); in _dom_new_reconNs()
744 char *localname = NULL, *prefix = NULL; in PHP_FUNCTION() local
766 errorcode = dom_check_qname(name, &localname, &prefix, uri_len, name_len); in PHP_FUNCTION()
775 if ((xmlStrEqual((xmlChar *) prefix, (xmlChar *)"xmlns") || in PHP_FUNCTION()
776 (prefix == NULL && xmlStrEqual((xmlChar *) localname, (xmlChar *)"xmlns"))) && in PHP_FUNCTION()
779 if (prefix == NULL) { in PHP_FUNCTION()
786 if (nsptr && nsptr->prefix == NULL) { in PHP_FUNCTION()
791 if ((tmpnsptr->prefix != NULL) && (tmpnsptr->href != NULL) && in PHP_FUNCTION()
805 if (prefix == NULL) { in PHP_FUNCTION()
816 nsptr = dom_get_ns(elemp, uri, &errorcode, prefix); in PHP_FUNCTION()
848 if (prefix != NULL) { in PHP_FUNCTION()
849 xmlFree(prefix); in PHP_FUNCTION()
894 if (nsptr->prefix != NULL) { in PHP_FUNCTION()
895 xmlFree((char *) nsptr->prefix); in PHP_FUNCTION()
896 nsptr->prefix = NULL; in PHP_FUNCTION()
946 if (nsptr->prefix) { in PHP_FUNCTION()
947 curns->prefix = xmlStrdup((xmlChar *) nsptr->prefix); in PHP_FUNCTION()
949 if (nsptr->prefix) { in PHP_FUNCTION()
950 fakeAttrp = xmlNewDocNode(elemp->doc, NULL, (xmlChar *) nsptr->prefix, nsptr->href); in PHP_FUNCTION()