Lines Matching refs:ns
236 xmlNsPtr ns; in dom_element_tag_name_read() local
246 ns = nodep->ns; in dom_element_tag_name_read()
247 if (ns != NULL && ns->prefix) { in dom_element_tag_name_read()
248 qname = xmlStrdup(ns->prefix); in dom_element_tag_name_read()
282 xmlNsPtr ns; in dom_get_dom1_attribute() local
285 ns = elem->nsDef; in dom_get_dom1_attribute()
286 while (ns) { in dom_get_dom1_attribute()
287 if (xmlStrEqual(ns->prefix, nqname)) { in dom_get_dom1_attribute()
290 ns = ns->next; in dom_get_dom1_attribute()
293 return (xmlNodePtr)ns; in dom_get_dom1_attribute()
295 ns = xmlSearchNs(elem->doc, elem, prefix); in dom_get_dom1_attribute()
299 if (ns != NULL) { in dom_get_dom1_attribute()
300 return (xmlNodePtr)xmlHasNsProp(elem, nqname, ns->href); in dom_get_dom1_attribute()
516 attrp->ns = curns; in PHP_FUNCTION()
693 static xmlNsPtr _dom_new_reconNs(xmlDocPtr doc, xmlNodePtr tree, xmlNsPtr ns) /* {{{ */ in _dom_new_reconNs() argument
699 if ((tree == NULL) || (ns == NULL) || (ns->type != XML_NAMESPACE_DECL)) { in _dom_new_reconNs()
708 if (ns->prefix == NULL) in _dom_new_reconNs()
711 snprintf((char *) prefix, sizeof(prefix), "%.20s", (char *)ns->prefix); in _dom_new_reconNs()
716 if (ns->prefix == NULL) in _dom_new_reconNs()
720 (char *)ns->prefix, counter++); in _dom_new_reconNs()
727 def = xmlNewNs(tree, ns->href, prefix); in _dom_new_reconNs()
956 fakeAttrp->ns = curns; in PHP_FUNCTION()
1008 nsp = attrp->ns; in PHP_FUNCTION()