Lines Matching refs:prefix
39 char *localname = NULL, *prefix = NULL; in PHP_METHOD() local
57 errorcode = dom_check_qname(name, &localname, &prefix, uri_len, name_len); in PHP_METHOD()
61 nsptr = dom_get_ns(nodep, uri, &errorcode, prefix); in PHP_METHOD()
66 if (prefix != NULL) { in PHP_METHOD()
67 xmlFree(prefix); in PHP_METHOD()
78 localname = (char *) xmlSplitQName2((xmlChar *) name, (xmlChar **) &prefix); in PHP_METHOD()
79 if (prefix != NULL) { in PHP_METHOD()
81 xmlFree(prefix); in PHP_METHOD()
125 if (ns != NULL && ns->prefix) { in dom_element_tag_name_read()
126 qname = xmlStrdup(ns->prefix); in dom_element_tag_name_read()
161 xmlChar *prefix = xmlStrndup(name, len); in dom_get_dom1_attribute() local
162 if (prefix && xmlStrEqual(prefix, (xmlChar *)"xmlns")) { in dom_get_dom1_attribute()
165 if (xmlStrEqual(ns->prefix, nqname)) { in dom_get_dom1_attribute()
170 xmlFree(prefix); in dom_get_dom1_attribute()
173 ns = xmlSearchNs(elem->doc, elem, prefix); in dom_get_dom1_attribute()
174 if (prefix != NULL) { in dom_get_dom1_attribute()
175 xmlFree(prefix); in dom_get_dom1_attribute()
184 if (nsPtr->prefix == NULL) { in dom_get_dom1_attribute()
385 curns->prefix = xmlStrdup((xmlChar *) attrp->children); in PHP_METHOD()
574 xmlChar prefix[50]; in _dom_new_reconNs() local
586 if (ns->prefix == NULL) in _dom_new_reconNs()
587 snprintf((char *) prefix, sizeof(prefix), "default"); in _dom_new_reconNs()
589 snprintf((char *) prefix, sizeof(prefix), "%.20s", (char *)ns->prefix); in _dom_new_reconNs()
591 def = xmlSearchNs(doc, tree, prefix); in _dom_new_reconNs()
594 if (ns->prefix == NULL) in _dom_new_reconNs()
595 snprintf((char *) prefix, sizeof(prefix), "default%d", counter++); in _dom_new_reconNs()
597 snprintf((char *) prefix, sizeof(prefix), "%.20s%d", in _dom_new_reconNs()
598 (char *)ns->prefix, counter++); in _dom_new_reconNs()
599 def = xmlSearchNs(doc, tree, prefix); in _dom_new_reconNs()
605 def = xmlNewNs(tree, ns->href, prefix); in _dom_new_reconNs()
621 char *localname = NULL, *prefix = NULL; in PHP_METHOD() local
644 errorcode = dom_check_qname(name, &localname, &prefix, uri_len, name_len); in PHP_METHOD()
653 if ((xmlStrEqual((xmlChar *) prefix, (xmlChar *)"xmlns") || in PHP_METHOD()
654 (prefix == NULL && xmlStrEqual((xmlChar *) localname, (xmlChar *)"xmlns"))) && in PHP_METHOD()
657 if (prefix == NULL) { in PHP_METHOD()
664 if (nsptr && nsptr->prefix == NULL) { in PHP_METHOD()
669 if ((tmpnsptr->prefix != NULL) && (tmpnsptr->href != NULL) && in PHP_METHOD()
683 if (prefix == NULL) { in PHP_METHOD()
694 nsptr = dom_get_ns(elemp, uri, &errorcode, prefix); in PHP_METHOD()
726 if (prefix != NULL) { in PHP_METHOD()
727 xmlFree(prefix); 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()
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()