Lines Matching refs:prefix
157 char *localname = NULL, *prefix = NULL; in PHP_METHOD() local
175 errorcode = dom_check_qname(name, &localname, &prefix, uri_len, name_len); in PHP_METHOD()
179 nsptr = dom_get_ns(nodep, uri, &errorcode, prefix); in PHP_METHOD()
184 if (prefix != NULL) { in PHP_METHOD()
185 xmlFree(prefix); in PHP_METHOD()
196 localname = (char *) xmlSplitQName2((xmlChar *) name, (xmlChar **) &prefix); in PHP_METHOD()
197 if (prefix != NULL) { in PHP_METHOD()
199 xmlFree(prefix); in PHP_METHOD()
243 if (ns != NULL && ns->prefix) { in dom_element_tag_name_read()
244 qname = xmlStrdup(ns->prefix); in dom_element_tag_name_read()
279 xmlChar *prefix = xmlStrndup(name, len); in dom_get_dom1_attribute() local
280 if (prefix && xmlStrEqual(prefix, (xmlChar *)"xmlns")) { in dom_get_dom1_attribute()
283 if (xmlStrEqual(ns->prefix, nqname)) { in dom_get_dom1_attribute()
288 xmlFree(prefix); in dom_get_dom1_attribute()
291 ns = xmlSearchNs(elem->doc, elem, prefix); in dom_get_dom1_attribute()
292 if (prefix != NULL) { in dom_get_dom1_attribute()
293 xmlFree(prefix); in dom_get_dom1_attribute()
302 if (nsPtr->prefix == NULL) { in dom_get_dom1_attribute()
507 curns->prefix = xmlStrdup((xmlChar *) attrp->children); in PHP_FUNCTION()
700 xmlChar prefix[50]; in _dom_new_reconNs() local
712 if (ns->prefix == NULL) in _dom_new_reconNs()
713 snprintf((char *) prefix, sizeof(prefix), "default"); in _dom_new_reconNs()
715 snprintf((char *) prefix, sizeof(prefix), "%.20s", (char *)ns->prefix); in _dom_new_reconNs()
717 def = xmlSearchNs(doc, tree, prefix); in _dom_new_reconNs()
720 if (ns->prefix == NULL) in _dom_new_reconNs()
721 snprintf((char *) prefix, sizeof(prefix), "default%d", counter++); in _dom_new_reconNs()
723 snprintf((char *) prefix, sizeof(prefix), "%.20s%d", in _dom_new_reconNs()
724 (char *)ns->prefix, counter++); in _dom_new_reconNs()
725 def = xmlSearchNs(doc, tree, prefix); in _dom_new_reconNs()
731 def = xmlNewNs(tree, ns->href, prefix); in _dom_new_reconNs()
748 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()
900 if (nsptr->prefix != NULL) { in PHP_FUNCTION()
901 xmlFree((char *) nsptr->prefix); in PHP_FUNCTION()
902 nsptr->prefix = NULL; in PHP_FUNCTION()
953 if (nsptr->prefix) { in PHP_FUNCTION()
954 curns->prefix = xmlStrdup((xmlChar *) nsptr->prefix); in PHP_FUNCTION()
956 if (nsptr->prefix) { in PHP_FUNCTION()
957 fakeAttrp = xmlNewDocNode(elemp->doc, NULL, (xmlChar *) nsptr->prefix, nsptr->href); in PHP_FUNCTION()